3v4l.org

run code in 300+ PHP versions simultaneously
<?php f(); if (true) { function f() { echo 1; } } else { function f() { echo 2; } } function f() { echo 3; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s2OZL
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                                       'f'
          1        DO_FCALL                                      0          
    3     2      > JMPZ                                                     <true>, ->5
          3    >   DECLARE_FUNCTION                                         'f'
          4      > JMP                                                      ->6
          5    >   DECLARE_FUNCTION                                         'f'
    4     6    > > RETURN                                                   1

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

End of function %00f%2Fin%2Fs2OZL%3A3%240

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

End of function %00f%2Fin%2Fs2OZL%3A3%241

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

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.16 ms | 1394 KiB | 13 Q