3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Core { function __construct() { if ($_GET['hi']) { exit('hi'); } echo 'haha'; } function __destruct() { if (is_object($GLOBALS['core'])) { phpinfo(); } else { echo 'fuck'; } } } $_GET['hi'] = 1; $core = new Core;
based on c4p4C
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
hi Notice: Undefined index: core in /in/Lij2t on line 12 fuck
Output for hhvm-3.12.0
hi
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.2.17
hi Notice: Undefined index: core in /in/Lij2t on line 12 fuck
Output for 4.3.0 - 4.4.9