3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nu_array = null; $callback = function ( $item ) use(&$nu_array) { $nu_array[] = $item; }; $array = array('a',array(1,2,3),'b',array('c',4,5,array(6,7,array(8)))); array_walk_recursive($array, $callback); print_r($nu_array); /** Array ( [0] => apple [1] => sky [2] => juice ) **/
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => a [1] => 1 [2] => 2 [3] => 3 [4] => b [5] => c [6] => 4 [7] => 5 [8] => 6 [9] => 7 [10] => 8 )

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