3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { function __construct() { echo ' Base'; } } class Extended extends Base { function __construct() { echo ' Extended'; } } class Extended2 extends Extended { function __construct() { echo ' Extended2'; } } $var1 = new Base(); $var2 = new Extended(); $var3 = new Extended2(); $var4 = $var1; new $var4; $var5 = clone $var3; new $var5;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ev1TJ
function name:  (null)
number of ops:  21
compiled vars:  !0 = $var1, !1 = $var2, !2 = $var3, !3 = $var4, !4 = $var5
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   NEW                                              $5      'Base'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $5
   24     3        NEW                                              $8      'Extended'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $8
   25     6        NEW                                              $11     'Extended2'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !2, $11
   26     9        ASSIGN                                                   !3, !0
   27    10        FETCH_CLASS                                   0  $15     !3
         11        NEW                                              $16     $15
         12        DO_FCALL                                      0          
         13        FREE                                                     $16
   28    14        CLONE                                            ~18     !2
         15        ASSIGN                                                   !4, ~18
   29    16        FETCH_CLASS                                   0  $20     !4
         17        NEW                                              $21     $20
         18        DO_FCALL                                      0          
         19        FREE                                                     $21
         20      > RETURN                                                   1

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

End of function __construct

End of class Base.

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

End of function __construct

End of class Extended.

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

End of function __construct

End of class Extended2.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.56 ms | 1395 KiB | 13 Q