3v4l.org

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

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.79 ms | 1399 KiB | 15 Q