3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = " 'this is in single quotes' but \"the\" rest aint "; $str = preg_replace('~(["\'])([^"\']+)\1~',"",$input); print_r($str); ?>

preferences:
34.11 ms | 402 KiB | 5 Q