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){ echo $key . "= " . $item; } //echo '<div>' . $dogs[0]['name'] . '</div>'; ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Array to string conversion in /in/FSlSR on line 17 0= Array Warning: Array to string conversion in /in/FSlSR on line 17 1= Array Warning: Array to string conversion in /in/FSlSR on line 17 2= Array Warning: Array to string conversion in /in/FSlSR on line 17 3= Array

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