3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { private static $x = 1; } class B extends A { function bar() { var_dump(self::$x); } }; $a = new B; $a->bar();
based on 4XheY
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/lU8hO
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
   7     1        NOP                                                      
         2        NOP                                                      
  13     3        NEW                                              $4      :-4
         4        DO_FCALL                                      0          
         5        ASSIGN                                                   !0, $4
  14     6        INIT_METHOD_CALL                                         !0, 'bar'
         7        DO_FCALL                                      0          
         8      > RETURN                                                   1

Class A: [no user functions]
Class B:
Function bar:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/lU8hO
function name:  bar
number of ops:  6
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   9     0  E >   INIT_FCALL                                               'var_dump'
         1        FETCH_CLASS                                 513  :0      
         2        FETCH_R                      static member       $1      'x'
         3        SEND_VAR                                                 $1
         4        DO_ICALL                                                 
  10     5      > RETURN                                                   null

End of function bar

End of class B.

Generated using Vulcan Logic Dumper, using php 7.3.0