3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace_callback( '\d+', '123abc456def789', 'incr' ); function incr($args){ var_dump($args); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IZn9m
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_replace_callback'
    4     1        SEND_VAL                                                 '%5Cd%2B'
    5     2        SEND_VAL                                                 '123abc456def789'
    6     3        SEND_VAL                                                 'incr'
          4        DO_ICALL                                         $0      
          5        ECHO                                                     $0
   11     6      > RETURN                                                   1

Function incr:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IZn9m
function name:  incr
number of ops:  5
compiled vars:  !0 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   11     4      > RETURN                                                   null

End of function incr

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.37 ms | 1394 KiB | 17 Q