3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo extends bar { } class bar { } $a = new foo(); if($a instanceof bar) { echo 'hi'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/WpKc7
function name:  (null)
number of ops:  8
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'foo', 'bar'
   11     1        NEW                                              $1      'foo'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   13     4        INSTANCEOF                                               !0, 'bar'
          5      > JMPZ                                                     ~4, ->7
   14     6    >   ECHO                                                     'hi'
   15     7    > > RETURN                                                   1

Class foo: [no user functions]
Class bar: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.08 ms | 1392 KiB | 13 Q