3v4l.org

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

preferences:
38.79 ms | 402 KiB | 5 Q