3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php register_shutdown_function(function () { var_dump(error_get_last()); }); 1 / 0; trigger_error('Noooooooo', E_USER_ERROR);
Output for 5.3.28 - 5.3.29, 5.4.18 - 5.6.28, 7.0.0 - 7.1.0
Warning: Division by zero in /in/XP58O on line 7 Fatal error: Noooooooo in /in/XP58O on line 9 array(4) { ["type"]=> int(256) ["message"]=> string(9) "Noooooooo" ["file"]=> string(9) "/in/XP58O" ["line"]=> int(9) }
Process exited with code 255.
Output for hhvm-3.12.0
Warning: Division by zero in /in/XP58O on line 7 Fatal error: Noooooooo in /in/XP58O on line 9 array(4) { ["type"]=> int(16777217) ["message"]=> string(9) "Noooooooo" ["file"]=> string(9) "/in/XP58O" ["line"]=> int(9) }
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17
Warning: Division by zero in /in/JTo5m on line 7 Fatal error: Noooooooo in /in/JTo5m on line 9 array(4) { ["type"]=> int(256) ["message"]=> string(9) "Noooooooo" ["file"]=> string(9) "/in/JTo5m" ["line"]=> int(9) }
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /in/JTo5m on line 3
Process exited with code 255.
Output for 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION, expecting ')' in /in/JTo5m on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/JTo5m on line 3
Process exited with code 255.
Output for 4.3.0
Parse error: parse error, unexpected T_FUNCTION, expecting ')' in /in/XP58O on line 3
Process exited with code 255.