3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dias = array('Domingo','Lunes','Martes','Miercoles','Jueves','Viernes','Sabado'); $mes = array(); //Recorro 4 semanas for($i=0;$i<4;$i++){ //Por cada semana recorro la cantidad de dias que tiene la semana. $diasSemana = count($dias); for($j=0;$j<$diasSemana;$j++){ //En la posicion correcta Semana => Dia, ubico el nombre del dia $mes[$i][$j] = $dias[$j]; } } foreach ($mes as $cuatro){ echo "<br>"; foreach ($dias as $di){ echo $di; "<br>"; } ?>
Output for 5.4.0 - 5.4.12
Parse error: syntax error, unexpected end of file in /in/H1ifZ on line 24
Process exited with code 255.
Output for 5.3.0 - 5.3.22
Parse error: syntax error, unexpected $end in /in/H1ifZ on line 24
Process exited with code 255.