3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $texts = Array ( "CAR_SINGULAR" => Array ( "id" => 1, "translations" => Array ( "de" => "Auto", "en" => "Car" ) ), "CAR_PLURAL" => Array ( "id" => 2, "translations" => Array ( "de" => "Autos", "en" => "cars" ) ) ); foreach($texts as $key => $subarr){ echo $key. "\n"; foreach($subarr["translations"] as $lang => $val){ echo $lang . ": " . $val . "\n"; } echo "\n"; }
based on i8rU2
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0rc3
CAR_SINGULAR de: Auto en: Car CAR_PLURAL de: Autos en: cars