3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_NONE); class Something{}; var_dump(new Something() + new Something() + new Something());
Output for 5.1.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Use of undefined constant E_NONE - assumed 'E_NONE' in /in/sbAtu on line 2 int(3)
Output for hhvm-3.10.0 - 3.12.0
Notice: Use of undefined constant E_NONE - assumed 'E_NONE' in /in/sbAtu on line 2 Warning: error_reporting() expects parameter 1 to be integer, string given in /in/sbAtu on line 2 Notice: Object of class Something could not be converted to int in /in/sbAtu on line 5 Notice: Object of class Something could not be converted to int in /in/sbAtu on line 5 Notice: Object of class Something could not be converted to int in /in/sbAtu on line 5 int(3)
Output for 4.3.2 - 5.0.5
Notice: Use of undefined constant E_NONE - assumed 'E_NONE' in /in/sbAtu on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant E_NONE - assumed 'E_NONE' in /in/sbAtu on line 2