3v4l.org

run code in 300+ PHP versions simultaneously
<?php function one() { function two() { } } var_dump(function_exists("two")); one(); var_dump(function_exists("two"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JcGO1
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'function_exists'
          2        SEND_VAL                                                 'two'
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
    8     6        INIT_FCALL                                               'one'
          7        DO_FCALL                                      0          
    9     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'function_exists'
         10        SEND_VAL                                                 'two'
         11        DO_ICALL                                         $3      
         12        SEND_VAR                                                 $3
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

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

End of function one

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

End of function %00two%2Fin%2FJcGO1%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.65 ms | 1398 KiB | 18 Q