3v4l.org

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

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

End of function function_fixture

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

End of function %00test%2Fin%2FmTKRP%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.97 ms | 1398 KiB | 18 Q