3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} class_alias('Foo', '0'); $className = '0'; var_dump(class_exists('0')); var_dump(new $className);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BhJqk
function name:  (null)
number of ops:  18
compiled vars:  !0 = $className
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'class_alias'
          1        SEND_VAL                                                 'Foo'
          2        SEND_VAL                                                 '0'
          3        DO_ICALL                                                 
    7     4        ASSIGN                                                   !0, '0'
    9     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'class_exists'
          7        SEND_VAL                                                 '0'
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                                 
   10    11        INIT_FCALL                                               'var_dump'
         12        FETCH_CLASS                                   0  $5      !0
         13        NEW                                              $6      $5
         14        DO_FCALL                                      0          
         15        SEND_VAR                                                 $6
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.64 ms | 1399 KiB | 19 Q