3v4l.org

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

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/60aqS
function name:  a
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DECLARE_FUNCTION                                         'b'
    5     1      > RETURN                                                   'Defining+b%28%29'
    6     2*     > RETURN                                                   null

End of function a

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

End of function %00b%2Fin%2F60aqS%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.57 ms | 1398 KiB | 18 Q