3v4l.org

run code in 300+ PHP versions simultaneously
<?php Class myClass { public function __construct(){ echo self::testMyStatic(); } private static function testMyStatic(){ return "Test Success"; } } Class myOtherClass extends myClass { public function __construct(){ parent::__construct(); } } $c = new myOtherClass();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A7C2M
function name:  (null)
number of ops:  4
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   NEW                                              $1      'myOtherClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
          3      > RETURN                                                   1

Class myClass:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A7C2M
function name:  __construct
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_STATIC_METHOD_CALL                                  'testMyStatic'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
    7     3      > RETURN                                                   null

End of function __construct

Function testmystatic:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A7C2M
function name:  testMyStatic
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > RETURN                                                   'Test+Success'
   11     1*     > RETURN                                                   null

End of function testmystatic

End of class myClass.

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

End of function __construct

Function testmystatic:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A7C2M
function name:  testMyStatic
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > RETURN                                                   'Test+Success'
   11     1*     > RETURN                                                   null

End of function testmystatic

End of class myOtherClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.86 ms | 1395 KiB | 13 Q