3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( 'bathroom' => array ( 'name' => 'Bathroom', 'things' => array ( 0 => array ( 'name' => 'ChevalMirrow', 'cubic' => .14, 'quantity' => 1 ), 1 => array ( 'name' => 'Carton/Wine', 'cubic' => .07, 'quantity' => 1 ), 2 => array ( 'name' => 'Carton/picture', 'cubic' => .07, 'quantity' => 1 ) ) ) ); foreach ($array as $key => $value) { echo "$key:<br>\n"; echo " name: {$value['name']}<br>\n"; foreach ($value['things'] as $t => $thing) { echo "\tthing $t:<br>\n"; foreach ($thing as $name => $val) { echo "\t $name: $val<br>\n"; } } }
Output for git.master, git.master_jit, rfc.property-hooks
bathroom:<br> name: Bathroom<br> thing 0:<br> name: ChevalMirrow<br> cubic: 0.14<br> quantity: 1<br> thing 1:<br> name: Carton/Wine<br> cubic: 0.07<br> quantity: 1<br> thing 2:<br> name: Carton/picture<br> cubic: 0.07<br> quantity: 1<br>

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.89 ms | 406 KiB | 5 Q