3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.79 ms | 1395 KiB | 19 Q