3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = "Hej med dig"; echo str_replace(['med', 'dig'], ['på', 'hansi'], $test);
Output for 5.4.2 - 7.2.0
Hej på hansi
Output for 5.3.17 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/IXP8v on line 5
Process exited with code 255.