3v4l.org

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.78 ms | 1395 KiB | 17 Q