3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_replace_callback('/#\{([^\}]+)\}/', function ($match, $var) { var_dump($var); }, "#{dupa} i #{pupa}");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mKC8A
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_replace_callback'
          1        SEND_VAL                                                 '%2F%23%5C%7B%28%5B%5E%5C%7D%5D%2B%29%5C%7D%2F'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FmKC8A%3A2%240'
    5     3        SEND_VAL                                                 ~0
          4        SEND_VAL                                                 '%23%7Bdupa%7D+i+%23%7Bpupa%7D'
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FmKC8A%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mKC8A
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $match, !1 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    3     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                                 
    5     5      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FmKC8A%3A2%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.02 ms | 1394 KiB | 17 Q