3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($i = 0; $i <= 17; $i++) { // here $str .= $i . ','; } $str = substr($str, 0, -1); echo $str;
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: str in /in/2WPRF on line 5 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: str in /in/2WPRF on line 5 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17