3v4l.org

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.24 ms | 1385 KiB | 19 Q