3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = 'test123'; print_r(preg_replace('test', 'foo', $url)); print_r($url);
Output for 4.3.11 - 7.3.0rc4
Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/kubeA on line 4 test123
Output for 4.3.0 - 4.3.10
Warning: Delimiter must not be alphanumeric or backslash in /in/kubeA on line 4 test123