3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $person = array( 'height' => 100, 'build' => "average", 'waist' => 38, ); $hobbies = array( 'climbing' => true, 'skiing' => false, 'waist' => 38, ); $total = array("person" => $person, "hobbies" => $hobbies); print_r($total);
Output for 4.3.0 - 7.1.0
Array ( [person] => Array ( [height] => 100 [build] => average [waist] => 38 ) [hobbies] => Array ( [climbing] => 1 [skiing] => [waist] => 38 ) )