3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = " 'this is in single quotes' but the rest aint "; $str = preg_replace('~(["\'])([^"\']+)\1~',"",$input); print_r($str); ?>
Output for 4.3.0 - 7.1.0
but the rest aint