3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 'lala' => 123, 'lulu' => [ 'foo' => 'bar', 'wurs' => [ 'erdbaer', 'kaese' ] ], 'err' => [ 'da' => [ 'fuq' => 'yaye' ] ] ]; $it = new RecursiveArrayIterator($arr); $func = function(RecursiveArrayIterator $it) { while ($it->valid()) { $it->next(); } }; iterator_apply($it, $func, [$it]); echo '<pre>' . __FILE__ . ' on line ' . __LINE__ . PHP_EOL; print_r($it->getArrayCopy()); exit;
Output for git.master, git.master_jit, rfc.property-hooks
<pre>/in/ouKi2 on line 27 Array ( [lala] => 123 [lulu] => Array ( [foo] => bar [wurs] => Array ( [0] => erdbaer [1] => kaese ) ) [err] => Array ( [da] => Array ( [fuq] => yaye ) ) )

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:
68.32 ms | 402 KiB | 8 Q