3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($m) { return md5($m[1]); } var_dump(preg_replace_callback('/A([^B]+)B/','foo', "foo ApasswordB bar \xef\xbf\xbf"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FrY0f
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'preg_replace_callback'
          2        SEND_VAL                                                 '%2FA%28%5B%5EB%5D%2B%29B%2F'
          3        SEND_VAL                                                 'foo'
          4        SEND_VAL                                                 'foo+ApasswordB+bar+%EF%BF%BF'
          5        DO_ICALL                                         $0      
          6        SEND_VAR                                                 $0
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FrY0f
function name:  foo
number of ops:  7
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'md5'
          2        FETCH_DIM_R                                      ~1      !0, 1
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                         $2      
          5      > RETURN                                                   $2
    5     6*     > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.33 ms | 1395 KiB | 19 Q