[ create a new paste ] login | about

Link: http://codepad.org/NGPjR4fl    [ raw code | output | fork ]

PHP, pasted on Mar 12:
1
2
3
4
5
6
7
8
<?php
error_reporting(E_ALL);
class obj{}

var_dump(new obj() + new obj() + new obj());


?>


Output:
1
2
3
4
5
6
7

Notice: Object of class obj could not be converted to int in /t.php on line 5

Notice: Object of class obj could not be converted to int in /t.php on line 5

Notice: Object of class obj could not be converted to int in /t.php on line 5
int(3)


Create a new paste based on this one


Comments: