3v4l.org

run code in 300+ PHP versions simultaneously
<?php f1(); f2(); function f1(){} if(true) { function f2(){} }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/mXXAH
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'f1'
          1        DO_FCALL                                      0          
    3     2        INIT_FCALL_BY_NAME                                       'f2'
          3        DO_FCALL                                      0          
    7     4      > JMPZ                                                     <true>, ->6
    9     5    >   DECLARE_FUNCTION                                         'f2'
   10     6    > > RETURN                                                   1

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

End of function f1

Function %00f2%2Fin%2FmXXAH%3A9%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mXXAH
function name:  f2
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E > > RETURN                                                   null

End of function %00f2%2Fin%2FmXXAH%3A9%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.07 ms | 1394 KiB | 13 Q