3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $text = 'Me Amigo Moreno'; $text = str_replace(['Me'=>'My', 'Amigo'=>'Friend'], $text); echo $text;
based on M1gZ2
Output for 5.4.0 - 7.2.0
Warning: str_replace() expects at least 3 parameters, 2 given in /in/8pnsu on line 4
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/8pnsu on line 4
Process exited with code 255.