3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Interfaces; interface FeelingsInterface { } namespace Std; class Human { } class Animal { } class Person extends Human implements Interfaces\FeelingsInterface { } class Dog extends Animal implements Interfaces\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/LpDFO
function name:  (null)
number of ops:  21
compiled vars:  !0 = $me, !1 = $dog
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   DECLARE_CLASS                                            'std%5Cperson', 'std%5Chuman'
   13     1        DECLARE_CLASS                                            'std%5Cdog', 'std%5Canimal'
   16     2        NEW                                              $2      'Std%5CPerson'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
   17     5        NEW                                              $5      'Std%5CDog'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
   18     8        INIT_NS_FCALL_BY_NAME                                    'Std%5Cvar_dump'
          9        INIT_NS_FCALL_BY_NAME                                    'Std%5Cclass_implements'
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0  $8      
         12        SEND_VAR_NO_REF_EX                                       $8
         13        DO_FCALL                                      0          
   19    14        INIT_NS_FCALL_BY_NAME                                    'Std%5Cvar_dump'
         15        INIT_NS_FCALL_BY_NAME                                    'Std%5Cclass_implements'
         16        SEND_VAR_EX                                              !1
         17        DO_FCALL                                      0  $10     
         18        SEND_VAR_NO_REF_EX                                       $10
         19        DO_FCALL                                      0          
         20      > RETURN                                                   1

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.9 ms | 1395 KiB | 17 Q