3v4l.org

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

Class class@anonymous: [no user functions]
Class B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.09 ms | 1394 KiB | 17 Q