3v4l.org

run code in 300+ PHP versions simultaneously
<?php class testParent{ public function testParent(){ function __construct(){ echo 'In parent'; } } public function abc(){ echo 'in testParent->abc'; } } class testchild extends testParent{ function __construct(){ parent::__construct; echo 'In child'; } } $a = new testChild();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/boV4f
function name:  (null)
number of ops:  4
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   NEW                                              $1      'testChild'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
          3      > RETURN                                                   1

Function %00__construct%2Fin%2FboV4f%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/boV4f
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'In+parent'
    7     1      > RETURN                                                   null

End of function %00__construct%2Fin%2FboV4f%3A5%240

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

End of function testparent

Function abc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/boV4f
function name:  abc
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     'in+testParent-%3Eabc'
   12     1      > RETURN                                                   null

End of function abc

End of class testParent.

Class testchild:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/boV4f
function name:  __construct
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   FETCH_CLASS_CONSTANT                             ~0      '__construct'
          1        FREE                                                     ~0
   18     2        ECHO                                                     'In+child'
   19     3      > RETURN                                                   null

End of function __construct

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

End of function testparent

Function abc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/boV4f
function name:  abc
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     'in+testParent-%3Eabc'
   12     1      > RETURN                                                   null

End of function abc

End of class testchild.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.6 ms | 1399 KiB | 13 Q