3v4l.org

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

Class T1: [no user functions]
Class I1: [no user functions]
Class C1: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.08 ms | 1394 KiB | 15 Q