3v4l.org

run code in 300+ PHP versions simultaneously
<?php $goal = []; $info = [ ["fname1", "lname1", "21"], ["fname2", "lname2", "31"], ]; for ($i = 0; $i < count( $info) ; $i++){ $value1 = $info[$i][0]; // fname $value2 = $info[$i][1]; // lname $value3 = $info[$i][2]; // age $person = [$value1, $value2, $value3]; $goal[] = $person; } print_r($goal);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => fname1 [1] => lname1 [2] => 21 ) [1] => Array ( [0] => fname2 [1] => lname2 [2] => 31 ) )

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:
29.79 ms | 406 KiB | 5 Q