3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Human { } class Animal { } interface FeelingsInterface { } class Person extends Human implements FeelingsInterface { } class Dog extends Animal implements FeelingsInterface { } $me = new Person(); $dog = new Dog(); var_dump(class_implements($me)); var_dump(class_implements($dog));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bopVI
function name:  (null)
number of ops:  21
compiled vars:  !0 = $me, !1 = $dog
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                            'person', 'human'
   10     1        DECLARE_CLASS                                            'dog', 'animal'
   13     2        NEW                                              $2      'Person'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
   14     5        NEW                                              $5      'Dog'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
   15     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'class_implements'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $8      
         12        SEND_VAR                                                 $8
         13        DO_ICALL                                                 
   16    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'class_implements'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $10     
         18        SEND_VAR                                                 $10
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Class Human: [no user functions]
Class Animal: [no user functions]
Class FeelingsInterface: [no user functions]
Class Person: [no user functions]
Class Dog: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.65 ms | 1399 KiB | 17 Q