3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface A { } class B implements A { } $x = 'B'; var_dump( is_subclass_of( $x, 'A' ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2J4FQ
function name:  (null)
number of ops:  10
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'b'
   11     1        ASSIGN                                                   !0, 'B'
   12     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'is_subclass_of'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 'A'
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Class A: [no user functions]
Class B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.16 ms | 1394 KiB | 17 Q