3v4l.org

run code in 300+ PHP versions simultaneously
<?php $marks = [ "john" => ["physics" => 30, "maths" => 55, "chemistry" => 66], "jack" => ["physics" => 44, "maths" => 19, "chemistry" => 87], "mark" => ["physics" => 77, "maths" => 66, "chemistry" => 67], ]; foreach ($marks as $name=>$scores){ echo $name .":". $scores["chemistry"] ."\r"; }
Output for git.master, git.master_jit, rfc.property-hooks
john:66 jack:87 mark:67

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:
168.12 ms | 405 KiB | 5 Q