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 function anotherMove() { $this->move(); } } $b = new Bend; $b->anotherMove();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WT6sX
function name:  (null)
number of ops:  7
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   DECLARE_CLASS                                            'bend'
   21     1        NEW                                              $1      'Bend'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   22     4        INIT_METHOD_CALL                                         !0, 'anotherMove'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class Flexy:
Function move:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WT6sX
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/WT6sX
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/WT6sX
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/WT6sX
function name:  anotherMove
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_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:
151.49 ms | 1386 KiB | 13 Q