3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = '/test/Test+%26+Live%40home'; $result = preg_replace('(^/test/(.+)$)', '/test/test.php?testget=$1', $url); var_dump($result);
Output for 5.6.0 - 7.3.0alpha1
string(43) "/test/test.php?testget=Test+%26+Live%40home"