3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface IInterface { } class TheClass implements IInterface { } $cls = new TheClass(); if ($cls instanceof IInterface) echo "yes";
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/jvlV7
function name:  (null)
number of ops:  8
compiled vars:  !0 = $cls
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'theclass'
   11     1        NEW                                              $1      'TheClass'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   12     4        INSTANCEOF                                               !0, 'IInterface'
          5      > JMPZ                                                     ~4, ->7
          6    >   ECHO                                                     'yes'
          7    > > RETURN                                                   1

Class IInterface: [no user functions]
Class TheClass: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.08 ms | 1384 KiB | 13 Q