3v4l.org

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.6 ms | 1385 KiB | 17 Q