3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filesize = 15123456; $max_at_a_time = 5 * 1000 * 1000; // try 5 Mb limit $full_chunks = floor($filesize / $max_at_a_time); $remainder = $filesize % $max_at_a_time; for ($i=0; $i < ; $i++) { // create new context with range echo ('Range: bytes='.$i*$max_at_a_time.'-'.(($i+1)*$max_at_a_time)-1); }
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.29, 5.6.8 - 5.6.13
Parse error: syntax error, unexpected ';' in /in/dFrBh on line 8
Process exited with code 255.

preferences:
194.86 ms | 1395 KiB | 62 Q