3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { } class B { } class C extends A { } $a = new A; $b = new B; $c = new C; var_dump( $a instanceof A, A instanceof A, 'A' instanceof A, $a instanceof $a );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S2XhG
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $3      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   16     3        NEW                                              $6      'B'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $6
   17     6        NEW                                              $9      'C'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !2, $9
   19     9        INIT_FCALL                                               'var_dump'
   20    10        INSTANCEOF                                       ~12     !0, 'A'
         11        SEND_VAL                                                 ~12
   21    12        FETCH_CONSTANT                                   ~13     'A'
         13        INSTANCEOF                                       ~14     ~13, 'A'
         14        SEND_VAL                                                 ~14
   22    15        SEND_VAL                                                 <false>
   23    16        FETCH_CLASS                                   0  $15     !0
         17        INSTANCEOF                                       ~16     !0, $15
         18        SEND_VAL                                                 ~16
         19        DO_ICALL                                                 
   24    20      > RETURN                                                   1

Class A: [no user functions]
Class B: [no user functions]
Class C: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.04 ms | 1395 KiB | 15 Q