3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = 1468396800; $arr = []; for ($i = 0; $i < 363; $i++) { $start = $start + 86400; if (date('N', $start) >= 6) continue; $arr[$start] = rand(2,10); } var_dump(json_encode($arr));

preferences:
28.66 ms | 402 KiB | 5 Q