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(); get_class($me); get_class($dog);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U0jZA
function name:  (null)
number of ops:  13
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        GET_CLASS                                        ~8      !0
          9        FREE                                                     ~8
   16    10        GET_CLASS                                        ~9      !1
         11        FREE                                                     ~9
         12      > 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:
152.74 ms | 1384 KiB | 13 Q