3v4l.org

run code in 300+ PHP versions simultaneously
<?php $line="This is the first test.{@font-face:Garamond}"; $line=preg_replace_callback("/(?<![\]\\])\{([\w\s\\@:=\'\"-\.;^}]*)(?<!\\)\}/",function ($match){print_r($match);return 'foo';},$line); echo $line;

preferences:
34.28 ms | 402 KiB | 5 Q