3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = array("hi" => 0, "man" => 1); $string="hi man, how are you? Man is here. Hi again." echo str_replace(array_keys($list),array_values($list),$string);
Output for 5.4.0 - 5.4.22
Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/KUW8M on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_ECHO in /in/KUW8M on line 5
Process exited with code 255.

preferences:
199.8 ms | 1395 KiB | 58 Q