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 .= - 6; } echo "substr(".$param1.",".$param2.")<br>"; }
Output for 4.3.0 - 7.1.0
substr(0,6-6)<br>substr(6,12-6)<br>substr(12,18-6)<br>substr(18,24-6)<br>substr(24,30-6)<br>substr(30,36-6)<br>substr(36,42-6)<br>substr(42,48-6)<br>substr(48,54-6)<br>substr(54,60-6)<br>substr(60,66)<br>