3v4l.org

run code in 300+ PHP versions simultaneously
<?php $original_string = 'The brown fox'; $string_to_insert ='quick';<br>$insert_pos = 4; $new_string = substr_replace($original_string, $string_to_insert.' ', $insert_pos, 0); echo $new_string; ?>
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.29
Parse error: syntax error, unexpected '<' in /in/tEThD on line 3
Process exited with code 255.

preferences:
194.96 ms | 1387 KiB | 66 Q