3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Parentt { public static $RETURN_CODE_NOT_SAVED = 4; public function save() { var_dump(static::$RETURN_CODE_NOT_SAVED); } } class Child extends Parentt { public static $RETURN_CODE_NOT_SAVED = 11; public function save() { parent::save(); } } $c = new Child(); $c->save();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WnChf
function name:  (null)
number of ops:  6
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $1      'Child'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_METHOD_CALL                                         !0, 'save'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Parentt:
Function save:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WnChf
function name:  save
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_STATIC_PROP_R          global lock         ~0      'RETURN_CODE_NOT_SAVED'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    6     4      > RETURN                                                   null

End of function save

End of class Parentt.

Class Child:
Function save:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WnChf
function name:  save
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_STATIC_METHOD_CALL                                  'save'
          1        DO_FCALL                                      0          
   13     2      > RETURN                                                   null

End of function save

End of class Child.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.12 ms | 1395 KiB | 15 Q