3v4l.org

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

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

End of function x

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/IZMnq
function name:  flerp
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN_STATIC_PROP                                       'abc'
          1        OP_DATA                                                  1
          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/IZMnq
function name:  abc
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   FETCH_STATIC_PROP_R          unknown             ~0      'abc'
          1        ECHO                                                     ~0
          2      > RETURN                                                   null

End of function abc

End of class b.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.3 ms | 1395 KiB | 13 Q