3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $z1 = "abc"; $out = ""; for ($i = 0; $i < strlen($z1); $i++) { $out[$i] = $z1[$i]; // $out = $out.$z1[$i]; } print_r $out;
Output for 5.4.0 - 5.5.12
Parse error: syntax error, unexpected '$out' (T_VARIABLE) in /in/0Ibu2 on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/0Ibu2 on line 10
Process exited with code 255.