3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I {} class A {} class B {} class C extends A implements I {} var_dump(is_a('C', 'C', true), is_a('C', 'I', true), is_a('C', 'A', true), is_a('C', 'B', true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pGBkf
function name:  (null)
number of ops:  28
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   DECLARE_CLASS                                            'c', 'a'
    8     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'is_a'
          3        SEND_VAL                                                 'C'
          4        SEND_VAL                                                 'C'
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                         $0      
          7        SEND_VAR                                                 $0
          8        INIT_FCALL                                               'is_a'
          9        SEND_VAL                                                 'C'
         10        SEND_VAL                                                 'I'
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $1      
         13        SEND_VAR                                                 $1
         14        INIT_FCALL                                               'is_a'
         15        SEND_VAL                                                 'C'
         16        SEND_VAL                                                 'A'
         17        SEND_VAL                                                 <true>
         18        DO_ICALL                                         $2      
         19        SEND_VAR                                                 $2
         20        INIT_FCALL                                               'is_a'
         21        SEND_VAL                                                 'C'
         22        SEND_VAL                                                 'B'
         23        SEND_VAL                                                 <true>
         24        DO_ICALL                                         $3      
         25        SEND_VAR                                                 $3
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.23 ms | 1446 KiB | 15 Q