3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public function __construct(){ b::flerp(); } } class b { protected static $abc; public static function flerp() { self::$abc = 1; } } class c extends b { public function __construct() { print self::$abc."\n"; $a = new a(); print self::$abc."\n"; } } new c;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vBBkU
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   NEW                                              $0      'c'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
          3      > RETURN                                                   1

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

End of function __construct

End of class a.

Class b:
Function flerp:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vBBkU
function name:  flerp
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN_STATIC_PROP                                       'abc'
          1        OP_DATA                                                  1
   13     2      > RETURN                                                   null

End of function flerp

End of class b.

Class c:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vBBkU
function name:  __construct
number of ops:  10
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   FETCH_STATIC_PROP_R          unknown             ~1      'abc'
          1        CONCAT                                           ~2      ~1, '%0A'
          2        ECHO                                                     ~2
   19     3        NEW                                              $3      'a'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $3
   20     6        FETCH_STATIC_PROP_R          unknown             ~6      'abc'
          7        CONCAT                                           ~7      ~6, '%0A'
          8        ECHO                                                     ~7
   21     9      > RETURN                                                   null

End of function __construct

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

End of function flerp

End of class c.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.98 ms | 1399 KiB | 13 Q