3v4l.org

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

preferences:
61.16 ms | 402 KiB | 5 Q