3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ConstructorTest { public function __construct() { echo "ConstructorTest\n"; } } class ConstructorTest1 extends ConstructorTest { public function ConstructorTest1() { parent::__construct(); echo "ConstructorTest1\n"; } } class ConstructorTest2 extends ConstructorTest1 { public function ConstructorTest2() { $this->ConstructorTest1(); echo "ConstructorTest2\n"; } } class ConstructorTest3 extends ConstructorTest2 { public function ConstructorTest2() { parent::__construct(); echo "ConstructorTest3\n"; } } $test1 = new ConstructorTest(); $test2 = new ConstructorTest1(); $test3 = new ConstructorTest2(); $test4 = new ConstructorTest3();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SXec8
function name:  (null)
number of ops:  13
compiled vars:  !0 = $test1, !1 = $test2, !2 = $test3, !3 = $test4
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   38     0  E >   NEW                                              $4      'ConstructorTest'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
   39     3        NEW                                              $7      'ConstructorTest1'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $7
   40     6        NEW                                              $10     'ConstructorTest2'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !2, $10
   41     9        NEW                                              $13     'ConstructorTest3'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !3, $13
         12      > RETURN                                                   1

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

End of function __construct

End of class ConstructorTest.

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

End of function constructortest1

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

End of function __construct

End of class ConstructorTest1.

Class ConstructorTest2:
Function constructortest2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SXec8
function name:  ConstructorTest2
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   INIT_METHOD_CALL                                         'ConstructorTest1'
          1        DO_FCALL                                      0          
   24     2        ECHO                                                     'ConstructorTest2%0A'
   25     3      > RETURN                                                   null

End of function constructortest2

Function constructortest1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SXec8
function name:  ConstructorTest1
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_STATIC_METHOD_CALL                                  
          1        DO_FCALL                                      0          
   15     2        ECHO                                                     'ConstructorTest1%0A'
   16     3      > RETURN                                                   null

End of function constructortest1

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

End of function __construct

End of class ConstructorTest2.

Class ConstructorTest3:
Function constructortest2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SXec8
function name:  ConstructorTest2
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   32     0  E >   INIT_STATIC_METHOD_CALL                                  
          1        DO_FCALL                                      0          
   33     2        ECHO                                                     'ConstructorTest3%0A'
   34     3      > RETURN                                                   null

End of function constructortest2

Function constructortest1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SXec8
function name:  ConstructorTest1
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_STATIC_METHOD_CALL                                  
          1        DO_FCALL                                      0          
   15     2        ECHO                                                     'ConstructorTest1%0A'
   16     3      > RETURN                                                   null

End of function constructortest1

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

End of function __construct

End of class ConstructorTest3.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.78 ms | 1399 KiB | 13 Q