3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); class obj{} var_dump(new obj() + new obj() + $x->wat = "xo"); ?>
Output for 7.1.0
Notice: Object of class obj could not be converted to int in /in/NorbP on line 5 Notice: Object of class obj could not be converted to int in /in/NorbP on line 5 Warning: Creating default object from empty value in /in/NorbP on line 5 Warning: A non-numeric value encountered in /in/NorbP on line 5 int(2)
Output for 5.4.0 - 7.0.14
Notice: Object of class obj could not be converted to int in /in/NorbP on line 5 Notice: Object of class obj could not be converted to int in /in/NorbP on line 5 Warning: Creating default object from empty value in /in/NorbP on line 5 int(2)
Output for 5.1.0 - 5.3.29
Notice: Object of class obj could not be converted to int in /in/NorbP on line 5 Notice: Object of class obj could not be converted to int in /in/NorbP on line 5 int(2)
Output for 4.3.2 - 5.0.5
Fatal error: Unsupported operand types in /in/NorbP on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Unsupported operand types in /in/NorbP on line 5