3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface i{} class a implements i{} var_dump(a::class instanceof i); // false var_dump(in_array(i::class, class_implements(a::class), true)); // true
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mUKUC
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'a'
    5     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAL                                                 <false>
          3        DO_ICALL                                                 
    6     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'in_array'
          6        SEND_VAL                                                 'i'
          7        INIT_FCALL                                               'class_implements'
          8        SEND_VAL                                                 'a'
          9        DO_ICALL                                         $1      
         10        SEND_VAR                                                 $1
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $2      
         13        SEND_VAR                                                 $2
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Class i: [no user functions]
Class a: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.24 ms | 1394 KiB | 19 Q