3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = strtotime('04-03-12'); $end = strtotime('15-06-12'); For($i = $start; $i<=$end;){ $array = explode(" ", date("Y m d", $i)); $y = $array[0]; $m = $array[1]; $d = $array[2]; $arr[$y][$m][$d] = 1; $i += 86400; } Var_dump($arr);

Abusive script

This script was stopped while abusing our resources


preferences:
36.27 ms | 407 KiB | 5 Q