3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test=["abcd/abcd_.mp3"]; echo preg_replace("/abcd([^_.])/", "defg" . "\${1}"),$test);
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected ')', expecting ',' or ';' in /in/10GsI on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '[' in /in/10GsI on line 2
Process exited with code 255.