3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (get_defined_functions()['internal'] as $internalFunctionName) { if (defined($internalFunctionName)) { throw new Exception('Internal function constant name collision'); } else { define($internalFunctionName, $internalFunctionName); } } print_r(get_defined_constants(TRUE)['user']);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 19
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 19
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/hQQmc
function name:  (null)
number of ops:  28
compiled vars:  !0 = $internalFunctionName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'get_defined_functions'
          1        DO_ICALL                                         $1      
          2        FETCH_DIM_R                                      ~2      $1, 'internal'
          3      > FE_RESET_R                                       $3      ~2, ->19
          4    > > FE_FETCH_R                                               $3, !0, ->19
    4     5    >   INIT_FCALL                                               'defined'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8      > JMPZ                                                     $4, ->14
    5     9    >   NEW                                              $5      'Exception'
         10        SEND_VAL_EX                                              'Internal+function+constant+name+collision'
         11        DO_FCALL                                      0          
         12      > THROW                                         0          $5
         13*       JMP                                                      ->18
    7    14    >   INIT_FCALL                                               'define'
         15        SEND_VAR                                                 !0
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
    3    18      > JMP                                                      ->4
         19    >   FE_FREE                                                  $3
   11    20        INIT_FCALL                                               'print_r'
         21        INIT_FCALL                                               'get_defined_constants'
         22        SEND_VAL                                                 <true>
         23        DO_ICALL                                         $8      
         24        FETCH_DIM_R                                      ~9      $8, 'user'
         25        SEND_VAL                                                 ~9
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.21 ms | 1396 KiB | 23 Q