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

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for branch php-master
string(17) "testing is a test"
Output for branch php-master+opcache
string(17) "testing is a test"
Output for branch php-master+jit
string(17) "testing is a test"

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page