3v4l.org

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

Class Bar: [no user functions]
Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.55 ms | 1394 KiB | 19 Q