3v4l.org

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

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.38 ms | 1394 KiB | 17 Q