3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo () {} function bar () { function baz () {} /* Aufruf möglich */ baz(); } baz(); // Fatal error: Call to undefined function baz() bar(); // okay baz(); // okay bar(); // Fatal error: Cannot redeclare baz()
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D526d
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL_BY_NAME                                       'baz'
          1        DO_FCALL                                      0          
   14     2        INIT_FCALL                                               'bar'
          3        DO_FCALL                                      0          
   15     4        INIT_FCALL_BY_NAME                                       'baz'
          5        DO_FCALL                                      0          
   16     6        INIT_FCALL                                               'bar'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

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

End of function foo

Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D526d
function name:  bar
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_FUNCTION                                         'baz'
   10     1        INIT_FCALL_BY_NAME                                       'baz'
          2        DO_FCALL                                      0          
   11     3      > RETURN                                                   null

End of function bar

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

End of function %00baz%2Fin%2FD526d%3A7%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.84 ms | 1398 KiB | 15 Q