3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dogs = [ ['breed' => 'Cocker Spaniel', 'name' => ' Jypsy', 'size' => [ 'width'=> 5, 'height'=> 10]], ['breed' => 'german ', 'name' => ' Jypsy', 'size' => [ 'width'=>5, 'height'=> 10]], ['breed' => 'Shiba Inu', 'name' => ' Kotetsu', 'size' => [ 'width'=> 5, 'height'=> 10]], ['breed' => 'Unknown', 'name' => ' Sheru ', 'size' => [ 'width'=>5, 'height'=> 10]], ]; foreach($dogs as $key=>$item){ foreach($item as $dogkey=>$dogitem) { print_r($dogitem); } } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Cocker Spaniel JypsyArray ( [width] => 5 [height] => 10 ) german JypsyArray ( [width] => 5 [height] => 10 ) Shiba Inu KotetsuArray ( [width] => 5 [height] => 10 ) Unknown Sheru Array ( [width] => 5 [height] => 10 )

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