3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface TestInterface { public function init() ; } class TestAbstract implements TestInterface { public function init() { echo __CLASS__ ; } } class Test extends TestAbstract { public function init() { parent::init() ; } } (new Test)->init() ;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ecb0O
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   DECLARE_CLASS                                            'testabstract'
   11     1        DECLARE_CLASS                                            'test', 'testabstract'
   17     2        NEW                                              $0      'Test'
          3        DO_FCALL                                      0          
          4        INIT_METHOD_CALL                                         $0, 'init'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

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

End of function init

End of class TestInterface.

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

End of function init

End of class TestAbstract.

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

End of function init

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.89 ms | 1394 KiB | 13 Q