3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrays = [ 252 => [ 0 => [ "id" => 2929850, "titulo" => " Film 1" ], 1 => [ "id" => 2929848, "titulo" => "Film 2" ] ], 251 => [ 0 => [ "id" => 2929796, "titulo" => "Film 3" ], 1 => [ "id" => 2929795, "titulo" => "Film 4" ] ] ]; $result = []; foreach ($arrays as $key => $array) { $result[$key] = array_keys($array); } print_r($result);
Output for git.master_jit, git.master, rfc.property-hooks
Array ( [252] => Array ( [0] => 0 [1] => 1 ) [251] => Array ( [0] => 0 [1] => 1 ) )

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