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){ echo $elementos. ": ". $data. "<br>"; } if (is_array($data)){ foreach($data as $mas){ echo $mas. "<br>"; } } else { echo "no"; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Nombre: Adrian<br>Apellido: Madroñal<br>Nacionalidad: Argentino<br>Edad: 28<br> Warning: Array to string conversion in /in/KuIjg on line 16 Telefono: Array<br> Warning: Array to string conversion in /in/KuIjg on line 20 Array<br> Warning: Array to string conversion in /in/KuIjg on line 20 Array<br>32154846<br>

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:
37.05 ms | 401 KiB | 8 Q