3v4l.org

run code in 300+ PHP versions simultaneously
<?php function aa($zz){ return 50; } $zz = "jj"; echo override_function('aa', '$zz', 'return override_strlen($zz);'); function override_strlen($zz){ return 20; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kWWFK
function name:  (null)
number of ops:  8
compiled vars:  !0 = $zz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'jj'
    5     1        INIT_FCALL_BY_NAME                                       'override_function'
          2        SEND_VAL_EX                                              'aa'
          3        SEND_VAL_EX                                              '%24zz'
          4        SEND_VAL_EX                                              'return+override_strlen%28%24zz%29%3B'
          5        DO_FCALL                                      0  $2      
          6        ECHO                                                     $2
    9     7      > RETURN                                                   1

Function aa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kWWFK
function name:  aa
number of ops:  3
compiled vars:  !0 = $zz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1      > RETURN                                                   50
          2*     > RETURN                                                   null

End of function aa

Function override_strlen:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kWWFK
function name:  override_strlen
number of ops:  3
compiled vars:  !0 = $zz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1      > RETURN                                                   20
    9     2*     > RETURN                                                   null

End of function override_strlen

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.53 ms | 1394 KiB | 13 Q