3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Animal { abstract public static function eat(); } class Dog extends Animal { public static function eat() { echo 'dog food'; } } $dog = new Dog(); $dog->eat(); Dog::eat();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4Moiu
function name:  (null)
number of ops:  8
compiled vars:  !0 = $dog
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'Dog'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   13     3        INIT_METHOD_CALL                                         !0, 'eat'
          4        DO_FCALL                                      0          
   15     5        INIT_STATIC_METHOD_CALL                                  'Dog', 'eat'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class Animal:
Function eat:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4Moiu
function name:  eat
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   null

End of function eat

End of class Animal.

Class Dog:
Function eat:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4Moiu
function name:  eat
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'dog+food'
          1      > RETURN                                                   null

End of function eat

End of class Dog.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.46 ms | 1385 KiB | 13 Q