3v4l.org

run code in 300+ PHP versions simultaneously
<?php $datos = array( "Nombre" => "Adrian", "Apellido" => "Madroñal", "Nacionalidad" => "Argentino", "Edad" => 28, "Telefono" => array( 'Casa' => array('COD' => '011', 'TEL' => '45565486'), 'Celular' => array('COD' => '011', 'TEL' => '5548846'), 'Trabajo' => '32154846' ) ); foreach ($datos as $elementos => $data){ if (is_array($data)){ foreach($data as $mas => $tel){ if (is_array($tel)) foreach ($tel as $cod => $tels){ echo $mas. $cod. $tels; echo " "; } else { echo $mas. $tel. " "; } } } else { echo $elementos. ": ". $data. " "; } } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Nombre: Adrian Apellido: Madroñal Nacionalidad: Argentino Edad: 28 CasaCOD011 CasaTEL45565486 CelularCOD011 CelularTEL5548846 Trabajo32154846

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
45.68 ms | 401 KiB | 8 Q