3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); class a { public static $b = 'ilol'; public static function youpi() { echo 'lol'; echo self::$b; } } class c extends a { public static $b = 'oupa'; public static function youpi() { echo 'bouh'; echo self::$b; } public static function yay() { self::youpi(); } } c::yay();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3R9QO
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
   30     3        INIT_STATIC_METHOD_CALL                                  'c', 'yay'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class a:
Function youpi:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3R9QO
function name:  youpi
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ECHO                                                     'lol'
   11     1        FETCH_STATIC_PROP_R          unknown             ~0      'b'
          2        ECHO                                                     ~0
   12     3      > RETURN                                                   null

End of function youpi

End of class a.

Class c:
Function youpi:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3R9QO
function name:  youpi
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   ECHO                                                     'bouh'
   21     1        FETCH_STATIC_PROP_R          unknown             ~0      'b'
          2        ECHO                                                     ~0
   22     3      > RETURN                                                   null

End of function youpi

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

End of function yay

End of class c.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.19 ms | 1395 KiB | 15 Q