3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach($locales as $key => $code){ if($code == 'DE'){ unset($locales[$key]); } } var_dump(current($locales)); // bool(false)
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $locales in /in/PG1jp on line 3 Warning: foreach() argument must be of type array|object, null given in /in/PG1jp on line 3 Warning: Undefined variable $locales in /in/PG1jp on line 9 Fatal error: Uncaught TypeError: current(): Argument #1 ($array) must be of type array, null given in /in/PG1jp:9 Stack trace: #0 /in/PG1jp(9): current(NULL) #1 {main} thrown in /in/PG1jp on line 9
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:
52.55 ms | 401 KiB | 8 Q