3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface IInterface { } class TheClass implements IInterface { } $interfaces = class_implements('TheClass'); var_dump($interfaces); if (isset($interfaces['IInterface'])) { echo "Yes!"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/tMDFo
function name:  (null)
number of ops:  12
compiled vars:  !0 = $interfaces
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   DECLARE_CLASS                                            'theclass'
   10     1        INIT_FCALL                                               'class_implements'
          2        SEND_VAL                                                 'TheClass'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
   11     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
   12     8        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'IInterface'
          9      > JMPZ                                                     ~4, ->11
   13    10    >   ECHO                                                     'Yes%21'
   14    11    > > RETURN                                                   1

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.9 ms | 1394 KiB | 17 Q