3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = "'po'p'"; $r = preg_replace("/(^'|'$)/", "", $t); echo $r;

preferences:
61.67 ms | 402 KiB | 5 Q