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 5.0.4 - 7.1.0
Notice: Undefined variable: param2 in /in/KVuOv on line 5 Notice: Undefined variable: param2 in /in/KVuOv on line 7 substr(0,0)<br>substr(6,6)<br>substr(12,12)<br>substr(18,18)<br>substr(24,24)<br>substr(30,30)<br>substr(36,36)<br>substr(42,42)<br>substr(48,48)<br>substr(54,54)<br>substr(60,60)<br>
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: param2 in /in/KVuOv on line 5 Notice: Undefined variable: param2 in /in/KVuOv on line 7 substr(0,0)<br>substr(6,6)<br>substr(12,12)<br>substr(18,18)<br>substr(24,24)<br>substr(30,30)<br>substr(36,36)<br>substr(42,42)<br>substr(48,48)<br>substr(54,54)<br>substr(60,60)<br>