3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public static $test = 'ololo'; public static function outX() { return self::$test; } } class bar extends foo { public static $test = 'ololo2'; public static function out() { echo self::outX(); } } bar::out();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/74s9B
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   INIT_STATIC_METHOD_CALL                                  'bar', 'out'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Class foo:
Function outx:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/74s9B
function name:  outX
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      'test'
          1      > RETURN                                                   ~0
    8     2*     > RETURN                                                   null

End of function outx

End of class foo.

Class bar:
Function out:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/74s9B
function name:  out
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_STATIC_METHOD_CALL                                  'outX'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
   17     3      > RETURN                                                   null

End of function out

Function outx:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/74s9B
function name:  outX
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      'test'
          1      > RETURN                                                   ~0
    8     2*     > RETURN                                                   null

End of function outx

End of class bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.6 ms | 1394 KiB | 13 Q