3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} class Bar extends Foo {} class Baz {} $foo = new Foo; $bar = new Bar; $baz = new Baz; var_dump([ !($bar instanceof $foo), !($baz instanceof $foo), ]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nCn0F
function name:  (null)
number of ops:  21
compiled vars:  !0 = $foo, !1 = $bar, !2 = $baz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $3      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   10     3        NEW                                              $6      'Bar'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $6
   11     6        NEW                                              $9      'Baz'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !2, $9
   13     9        INIT_FCALL                                               'var_dump'
   14    10        FETCH_CLASS                                   0  $12     !0
         11        INSTANCEOF                                       ~13     !1, $12
         12        BOOL_NOT                                         ~14     ~13
         13        INIT_ARRAY                                       ~15     ~14
   15    14        FETCH_CLASS                                   0  $16     !0
         15        INSTANCEOF                                       ~17     !2, $16
         16        BOOL_NOT                                         ~18     ~17
         17        ADD_ARRAY_ELEMENT                                ~15     ~18
         18        SEND_VAL                                                 ~15
         19        DO_ICALL                                                 
   16    20      > RETURN                                                   1

Class Foo: [no user functions]
Class Bar: [no user functions]
Class Baz: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.15 ms | 1395 KiB | 15 Q