3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public function __construct(){ c::flerp(); } } class b { protected static $abc; public function flerp() { self::$abc = 1; } public function abc(){ echo self::$abc; } } class c extends b { } $a = new a; $b = new b; $b->abc();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/25T2G
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   NEW                                              $2      'a'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   24     3        NEW                                              $5      'b'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   25     6        INIT_METHOD_CALL                                         !1, 'abc'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class a:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/25T2G
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                                  'c', '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/25T2G
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

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

End of function abc

End of class b.

Class c:
Function flerp:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/25T2G
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

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

End of function abc

End of class c.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.91 ms | 1399 KiB | 13 Q