3v4l.org

run code in 300+ PHP versions simultaneously
<?php function func($var) { $array = array(); $value = $array[$var]; $realVar = $var; if (substr($var, -1) == 'a') { } if (isset($value)) { $anotherValue = $var . 'a'; if ($value['a']) { } } } $one = new stdClass(); $items = new ArrayObject(array($one)); unset($items[0]); unset($items[0]->test); func('test');
Output for git.master, git.master_jit, rfc.property-hooks
Notice: Indirect modification of overloaded element of ArrayObject has no effect in /in/8HWF0 on line 27 Warning: Undefined array key "test" in /in/8HWF0 on line 6

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:
39.91 ms | 401 KiB | 8 Q