3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $datos = array( "Nombre" => "Adrian", "Apellido" => "MadroƱal", "Nacionalidad" => "Argentino", "Edad" => 28, "Telefono" => array( 'Casa' => '45565486', 'Celular' => '5548846', 'Trabajo' => '32154846' ) ) foreach ($datos as $elementos => $data){ echo $elementos. ": ". $data. "<br>"; } if (is_array($data)){ foreach($data as $mas){ echo $mas. "<br>"; } } else { echo "no"; } ?>
Output for 5.4.0 - 5.4.12
Parse error: syntax error, unexpected 'foreach' (T_FOREACH) in /in/VWjYv on line 13
Process exited with code 255.
Output for 5.3.0 - 5.3.22
Parse error: syntax error, unexpected T_FOREACH in /in/VWjYv on line 13
Process exited with code 255.