3v4l.org

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

Class I1: [no user functions]
Class baz: [no user functions]
Class foo: [no user functions]
Class bar: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.44 ms | 1394 KiB | 17 Q