3v4l.org

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.95 ms | 1394 KiB | 15 Q