3v4l.org

run code in 200+ php & hhvm versions
<?php $test = "this is a test (asdfasdfasdf)"; $asdf = preg_replace("\s*\(.*\)\s*$", "", $test); var_dump($test);
based on 0MUIe
Output for 7.1.25 - 7.4.0beta2
Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/lARHp on line 5 string(29) "this is a test (asdfasdfasdf)"