3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dogs= [ ['name'=>'jippy','age'=>12 ,'address'=>'bhaktapur', 'size'=>[ 'weight'=>52, 'heght' =>2]], ['name'=>'jipu','age'=>2 ,'address'=>'pur', 'size'=>[ 'weight'=>52, 'heght' =>2]] ]; foreach($dogs as $key=> $item){ foreach($item as $innerkey=>$inneritem) { echo $innerkey . ' ' . $inneritem[$innerkey ]."\n"; } }
based on uRX1G

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Arrow functions
Warning: Illegal string offset 'name' in /in/2XTK2 on line 10 name j age Warning: Illegal string offset 'address' in /in/2XTK2 on line 10 address b Notice: Undefined index: size in /in/2XTK2 on line 10 size Warning: Illegal string offset 'name' in /in/2XTK2 on line 10 name j age Warning: Illegal string offset 'address' in /in/2XTK2 on line 10 address p Notice: Undefined index: size in /in/2XTK2 on line 10 size

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