3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Flexy { // Fatal error: Access type for interface method Flexy::move() must be omitted in /in/fLq8N on line 4 //protected function move(); public function move(); public static function anotherMove(); } class Bend implements Flexy { public function move() { echo "bend\n"; } public static function anotherMove() { self::move(); } } //$b = new Bend; Bend::anotherMove();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nFFgN
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   DECLARE_CLASS                                            'bend'
   22     1        INIT_STATIC_METHOD_CALL                                  'Bend', 'anotherMove'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

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

End of function move

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

End of function anothermove

End of class Flexy.

Class Bend:
Function move:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nFFgN
function name:  move
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ECHO                                                     'bend%0A'
   14     1      > RETURN                                                   null

End of function move

Function anothermove:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nFFgN
function name:  anotherMove
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_STATIC_METHOD_CALL                                  'move'
          1        DO_FCALL                                      0          
   18     2      > RETURN                                                   null

End of function anothermove

End of class Bend.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.17 ms | 1394 KiB | 13 Q