3v4l.org

run code in 200+ php & hhvm versions
<?php $test = "testing is a test ( asdf asdfasd (_)_)/////D asdfasdfasdf) "; $asdf = preg_replace("/\s*\(.*\)\s*$/", "", $test); var_dump($asdf);
based on rPkO0