3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {}; class Bar {}; $foo = new Foo; $bar = new Bar; var_dump(!$foo instanceof Bar && !$bar instanceof Foo);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/YXrrJ
function name:  (null)
number of ops:  16
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      !0, 'Bar'
          8        BOOL_NOT                                         ~9      ~8
          9      > JMPZ_EX                                          ~9      ~9, ->13
         10    >   INSTANCEOF                                       ~10     !1, 'Foo'
         11        BOOL_NOT                                         ~11     ~10
         12        BOOL                                             ~9      ~11
         13    >   SEND_VAL                                                 ~9
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.53 ms | 1394 KiB | 15 Q