3v4l.org

run code in 300+ PHP versions simultaneously
<?php class cm404 { public $str = ''; function init() { if (isset($GLOBALS['ryat'])) { exit('hi'); } unset($GLOBALS['hi']); } function __destruct() { global $obj; var_dump($obj); if(!is_object($obj)) { $obj = new cm404(); } echo "hi, $GLOBALS[hi]\n"; var_dump($obj); } } function _get() { // var_dump($obj); } //$ryat = 1; $hi = 'ryat'; $obj = new cm404(); $obj->init(); $hi = 'cm404'; register_shutdown_function(phpinfo()); new class1;
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function phpinfo() in /in/8HBHG:34 Stack trace: #0 {main} thrown in /in/8HBHG on line 34 NULL hi, cm404 object(cm404)#2 (1) { ["str"]=> string(0) "" } object(cm404)#2 (1) { ["str"]=> string(0) "" } hi, cm404 object(cm404)#2 (1) { ["str"]=> string(0) "" }
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
44.74 ms | 401 KiB | 8 Q