3v4l.org

run code in 500+ 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:  13
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                                                   'class_implements'
          6        SEND_VAL                                                     'a'
          7        DO_ICALL                                             $1      
          8        FRAMELESS_ICALL_3                in_array            ~2      'i', $1
          9        OP_DATA                                                      <true>
         10        SEND_VAL                                                     ~2
         11        DO_ICALL                                                     
         12      > RETURN                                                       1

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
208.16 ms | 1991 KiB | 15 Q