3v4l.org

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.2 ms | 1394 KiB | 15 Q