3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test {} $class = 'TEST'; $table = get_declared_classes() + get_declared_interfaces() + get_declared_traits(); $table = array_change_key_case(array_combine($table, $table), CASE_LOWER); var_dump($class, $table[strtolower($table)]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G87Ui
function name:  (null)
number of ops:  28
compiled vars:  !0 = $class, !1 = $table
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'TEST'
    7     1        INIT_FCALL                                               'get_declared_classes'
          2        DO_ICALL                                         $3      
          3        INIT_FCALL                                               'get_declared_interfaces'
          4        DO_ICALL                                         $4      
          5        ADD                                              ~5      $3, $4
          6        INIT_FCALL                                               'get_declared_traits'
          7        DO_ICALL                                         $6      
          8        ADD                                              ~7      ~5, $6
          9        ASSIGN                                                   !1, ~7
    8    10        INIT_FCALL                                               'array_change_key_case'
         11        INIT_FCALL                                               'array_combine'
         12        SEND_VAR                                                 !1
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $9      
         15        SEND_VAR                                                 $9
         16        SEND_VAL                                                 0
         17        DO_ICALL                                         $10     
         18        ASSIGN                                                   !1, $10
    9    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !0
         21        INIT_FCALL                                               'strtolower'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                         $12     
         24        FETCH_DIM_R                                      ~13     !1, $12
         25        SEND_VAL                                                 ~13
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Class test: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.33 ms | 1395 KiB | 27 Q