3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $students = array( 'John' => array( "unit1" => "76", "unit2" => "62", "unit3" => "56", "unit4" => "60", ), 'Tom' => array( "unit1" => "62", "unit2" => "82", "unit3" => "56", "unit4" => "47", ), 'Jane' => array( "unit1" => "52", "unit2" => "62", "unit3" => "66", "unit4" => "80", ), 'Jess' => array( "unit1" => "72", "unit2" => "52", "unit3" => "72", "unit4" => "65", ), ); print_r($students);
based on 2oM5J
Output for 4.3.0 - 7.2.0
Array ( [John] => Array ( [unit1] => 76 [unit2] => 62 [unit3] => 56 [unit4] => 60 ) [Tom] => Array ( [unit1] => 62 [unit2] => 82 [unit3] => 56 [unit4] => 47 ) [Jane] => Array ( [unit1] => 52 [unit2] => 62 [unit3] => 66 [unit4] => 80 ) [Jess] => Array ( [unit1] => 72 [unit2] => 52 [unit3] => 72 [unit4] => 65 ) )