3v4l.org

run code in 300+ PHP versions simultaneously
<?php function abc() { function xyz() { return 'xyz'; } return xyz(); } echo abc();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UTvaF
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'abc'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
          3      > RETURN                                                   1

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

End of function abc

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

End of function %00xyz%2Fin%2FUTvaF%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.95 ms | 1397 KiB | 14 Q