3v4l.org

run code in 500+ PHP versions simultaneously
<?php abstract class Foo { abstract public static function bar(); } class Baz extends Foo { public static function bar() { var_dump('static method call'); } } Baz::bar();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aC6oP
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   15     0  E >   INIT_STATIC_METHOD_CALL                                      'Baz', 'bar'
          1        DO_FCALL                                          0          
          2      > RETURN                                                       1

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

End of function bar

End of class Foo.

Class Baz:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aC6oP
function name:  bar
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                                   'var_dump'
          1        SEND_VAL                                                     'static+method+call'
          2        DO_ICALL                                                     
   12     3      > RETURN                                                       null

End of function bar

End of class Baz.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.38 ms | 2341 KiB | 14 Q