3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $string = "The quick blue fox jumped over the lazy dog."; $search = "blue"; $replace = "brown"; for($i = 0; $i < 1000; $i++) { echo str_replace($search, $replace, $string).PHP_EOL; }
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.19
Parse error: syntax error, unexpected '<' in /in/AAFOC on line 2
Process exited with code 255.

preferences:
171.32 ms | 1395 KiB | 55 Q