3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_register('var_dump'); class_alias('Foo', '*'); $a = '*'; new $a;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UWWTL
function name:  (null)
number of ops:  13
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        FETCH_CLASS                                   0  $4      !0
          9        NEW                                              $5      $4
         10        DO_FCALL                                      0          
         11        FREE                                                     $5
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.45 ms | 1385 KiB | 17 Q