3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(){ echo 'foo 1'; } if (is_callable('foo')){ runkit_function_redefine('foo','','echo "foo 2";'); } foo();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/8LYoj
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'is_callable'
          1        SEND_VAL                                                 'foo'
          2        DO_ICALL                                         $0      
          3      > JMPZ                                                     $0, ->9
    9     4    >   INIT_FCALL_BY_NAME                                       'runkit_function_redefine'
          5        SEND_VAL_EX                                              'foo'
          6        SEND_VAL_EX                                              ''
          7        SEND_VAL_EX                                              'echo+%22foo+2%22%3B'
          8        DO_FCALL                                      0          
   12     9    >   INIT_FCALL                                               'foo'
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8LYoj
function name:  foo
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'foo+1'
    5     1      > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.95 ms | 1389 KiB | 16 Q