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;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rFPAl
function name:  (null)
number of ops:  11
compiled vars:  !0 = $line, !1 = $regex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'This+is+the+first+test+paragraph.%7B%40font-face%3AGaramond%7D'
    3     1        ASSIGN                                                   !1, '%2F%28%3F%3C%21%5B%5C%5D%5C%5D%29%7B%28%5B%5Cw%5Cs%5C%40%3A%3D%27%22-%5C.%3B%5E%7D%5D%2A%29%28%3F%3C%21%5C%29%7D%2F'
    4     2        INIT_FCALL                                               'preg_replace_callback'
          3        SEND_VAR                                                 !1
    5     4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FrFPAl%3A5%240'
    8     5        SEND_VAL                                                 ~4
    9     6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
    4     8        ASSIGN                                                   !0, $5
   10     9        ECHO                                                     !0
         10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FrFPAl%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rFPAl
function name:  {closure}
number of ops:  3
compiled vars:  !0 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1      > RETURN                                                   null
    8     2*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FrFPAl%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.06 ms | 1395 KiB | 15 Q