3v4l.org

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

Class foo: [no user functions]
Class bar:
Function out:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gUDSi
function name:  out
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      'test'
          1        ECHO                                                     ~0
   13     2      > RETURN                                                   null

End of function out

End of class bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.84 ms | 1393 KiB | 13 Q