3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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"] . "la". $scores["maths"] ."\r"; }