3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { protected static $bla = array('bla' => 'alex'); public function getBla() { return self::$bla; } } class TestChild extends Test { protected static $bla = array('alex' => 'bla'); public function getBla() { var_dump(parent::getBla() + self::$bla); } } $test = new TestChild(); $test->getBla();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MoEjS
function name:  (null)
number of ops:  6
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   NEW                                              $1      'TestChild'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   24     3        INIT_METHOD_CALL                                         !0, 'getBla'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

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

End of function getbla

End of class Test.

Class TestChild:
Function getbla:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MoEjS
function name:  getBla
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_STATIC_METHOD_CALL                                  'getBla'
          2        DO_FCALL                                      0  $0      
          3        FETCH_STATIC_PROP_R          unknown             ~1      'bla'
          4        ADD                                              ~2      $0, ~1
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                                 
   20     7      > RETURN                                                   null

End of function getbla

End of class TestChild.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.25 ms | 1395 KiB | 15 Q