3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Some { private static $thing = 'cosa'; public function __construct() { echo self::$thing; } } class Extension extends Some { public function __construct() { echo self::$thing; } } new \Extension();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BO03E
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $0      'Extension'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
          3      > RETURN                                                   1

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

End of function __construct

End of class Some.

Class Extension:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BO03E
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      'thing'
          1        ECHO                                                     ~0
   16     2      > RETURN                                                   null

End of function __construct

End of class Extension.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.17 ms | 1394 KiB | 13 Q