3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a1 { static $mine="aaaa"; public function dai() { echo static::$mine; } } class a2 extends a1 { static $mine="bbb"; } $o=new a2(); $o->dai(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Egq8i
function name:  (null)
number of ops:  6
compiled vars:  !0 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'a2'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        INIT_METHOD_CALL                                         !0, 'dai'
          4        DO_FCALL                                      0          
   16     5      > RETURN                                                   1

Class a1:
Function dai:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Egq8i
function name:  dai
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      'mine'
          1        ECHO                                                     ~0
          2      > RETURN                                                   null

End of function dai

End of class a1.

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

End of function dai

End of class a2.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.3 ms | 1394 KiB | 13 Q