3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting("E_NONE"); class Something{}; $someVal = new Something() + new Something() + new Something(); echo $someVal;
Output for 5.1.0 - 5.6.28, 7.0.0 - 7.1.0
3
Output for hhvm-3.10.0 - 3.12.0
Warning: error_reporting() expects parameter 1 to be integer, string given in /in/FBvj3 on line 2 Notice: Object of class Something could not be converted to int in /in/FBvj3 on line 5 Notice: Object of class Something could not be converted to int in /in/FBvj3 on line 5 Notice: Object of class Something could not be converted to int in /in/FBvj3 on line 5 3
Output for 4.3.2 - 5.0.5

Process exited with code 255.
Output for 4.3.0 - 4.3.1