3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($i = 0; $i <= 62; $i += 6) { $param1 = ($i+6) - 6; $param2 = $param1 + 6; if($param2 >= 60) { $param2 = ($param1 + 6) - 6; } echo "substr(".$param1.",".$param2.")<br>"; }
Output for 4.3.0 - 7.1.0
substr(0,6)<br>substr(6,12)<br>substr(12,18)<br>substr(18,24)<br>substr(24,30)<br>substr(30,36)<br>substr(36,42)<br>substr(42,48)<br>substr(48,54)<br>substr(54,54)<br>substr(60,60)<br>