3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(preg_replace('/(nÖdkåpa)/i', '$1 xD', 'nödkåpa blabla', 1, 'UTF-8'));
based on KJVbQ
Output for 5.1.3 - 5.4.32
Fatal error: Only variables can be passed by reference in /in/pTuPb on line 3
Process exited with code 255.
Output for 5.1.0 - 5.1.2
string(16) "nödkåpa blabla"
Output for 4.3.0 - 5.0.5
Warning: Wrong parameter count for preg_replace() in /in/pTuPb on line 3 NULL