3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f0() {} function f1() {} function f2() {} function f3() {} assert(get_defined_functions()['user'] === array('f0', 'f1', 'f2', 'f3')); assert(get_defined_functions('user') === array('f0', 'f1', 'f2', 'f3')); assert(get_defined_functions(0) === array('f0', 'f1', 'f2', 'f3')); assert(get_defined_functions(1) === array('f1', 'f2', 'f3')); assert(get_defined_functions(3) === array('f3')); assert(get_defined_functions(4) === array()); assert(get_defined_functions(5) === array());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q68fI
function name:  (null)
number of ops:  64
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSERT_CHECK                                             
          1        INIT_FCALL                                               'assert'
          2        INIT_FCALL                                               'get_defined_functions'
          3        DO_ICALL                                         $0      
          4        FETCH_DIM_R                                      ~1      $0, 'user'
          5        IS_IDENTICAL                                     ~2      ~1, <array>
          6        SEND_VAL                                                 ~2
          7        SEND_VAL                                                 'assert%28get_defined_functions%28%29%5B%27user%27%5D+%3D%3D%3D+%5B%27f0%27%2C+%27f1%27%2C+%27f2%27%2C+%27f3%27%5D%29'
          8        DO_ICALL                                                 
    8     9        ASSERT_CHECK                                             
         10        INIT_FCALL                                               'assert'
         11        INIT_FCALL                                               'get_defined_functions'
         12        SEND_VAL                                                 'user'
         13        DO_ICALL                                         $4      
         14        IS_IDENTICAL                                     ~5      $4, <array>
         15        SEND_VAL                                                 ~5
         16        SEND_VAL                                                 'assert%28get_defined_functions%28%27user%27%29+%3D%3D%3D+%5B%27f0%27%2C+%27f1%27%2C+%27f2%27%2C+%27f3%27%5D%29'
         17        DO_ICALL                                                 
    9    18        ASSERT_CHECK                                             
         19        INIT_FCALL                                               'assert'
         20        INIT_FCALL                                               'get_defined_functions'
         21        SEND_VAL                                                 0
         22        DO_ICALL                                         $7      
         23        IS_IDENTICAL                                     ~8      $7, <array>
         24        SEND_VAL                                                 ~8
         25        SEND_VAL                                                 'assert%28get_defined_functions%280%29+%3D%3D%3D+%5B%27f0%27%2C+%27f1%27%2C+%27f2%27%2C+%27f3%27%5D%29'
         26        DO_ICALL                                                 
   10    27        ASSERT_CHECK                                             
         28        INIT_FCALL                                               'assert'
         29        INIT_FCALL                                               'get_defined_functions'
         30        SEND_VAL                                                 1
         31        DO_ICALL                                         $10     
         32        IS_IDENTICAL                                     ~11     $10, <array>
         33        SEND_VAL                                                 ~11
         34        SEND_VAL                                                 'assert%28get_defined_functions%281%29+%3D%3D%3D+%5B%27f1%27%2C+%27f2%27%2C+%27f3%27%5D%29'
         35        DO_ICALL                                                 
   11    36        ASSERT_CHECK                                             
         37        INIT_FCALL                                               'assert'
         38        INIT_FCALL                                               'get_defined_functions'
         39        SEND_VAL                                                 3
         40        DO_ICALL                                         $13     
         41        IS_IDENTICAL                                     ~14     $13, <array>
         42        SEND_VAL                                                 ~14
         43        SEND_VAL                                                 'assert%28get_defined_functions%283%29+%3D%3D%3D+%5B%27f3%27%5D%29'
         44        DO_ICALL                                                 
   12    45        ASSERT_CHECK                                             
         46        INIT_FCALL                                               'assert'
         47        INIT_FCALL                                               'get_defined_functions'
         48        SEND_VAL                                                 4
         49        DO_ICALL                                         $16     
         50        IS_IDENTICAL                                     ~17     $16, <array>
         51        SEND_VAL                                                 ~17
         52        SEND_VAL                                                 'assert%28get_defined_functions%284%29+%3D%3D%3D+%5B%5D%29'
         53        DO_ICALL                                                 
   13    54        ASSERT_CHECK                                             
         55        INIT_FCALL                                               'assert'
         56        INIT_FCALL                                               'get_defined_functions'
         57        SEND_VAL                                                 5
         58        DO_ICALL                                         $19     
         59        IS_IDENTICAL                                     ~20     $19, <array>
         60        SEND_VAL                                                 ~20
         61        SEND_VAL                                                 'assert%28get_defined_functions%285%29+%3D%3D%3D+%5B%5D%29'
         62        DO_ICALL                                                 
         63      > RETURN                                                   1

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

End of function f0

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

End of function f1

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

End of function f2

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

End of function f3

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
132.14 ms | 1405 KiB | 17 Q