3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Parentt { public static $RETURN_CODE_NOT_SAVED = 4; public function save(Model $model) { // saving model if(!$model) { $this->setReturnCode(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/5JV7D
function name:  (null)
number of ops:  6
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $1      'Child'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   20     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
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/5JV7D
function name:  save
number of ops:  9
compiled vars:  !0 = $model
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    6     1        BOOL_NOT                                         ~1      !0
          2      > JMPZ                                                     ~1, ->8
    7     3    >   INIT_METHOD_CALL                                         'setReturnCode'
          4        CHECK_FUNC_ARG                                           
          5        FETCH_STATIC_PROP_FUNC_ARG   unknown             $2      'RETURN_CODE_NOT_SAVED'
          6        SEND_FUNC_ARG                                            $2
          7        DO_FCALL                                      0          
    9     8    > > RETURN                                                   null

End of function save

End of class Parentt.

Class Child:
Function save:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/5JV7D
function name:  save
number of ops:  9
compiled vars:  !0 = $model
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    6     1        BOOL_NOT                                         ~1      !0
          2      > JMPZ                                                     ~1, ->8
    7     3    >   INIT_METHOD_CALL                                         'setReturnCode'
          4        CHECK_FUNC_ARG                                           
          5        FETCH_STATIC_PROP_FUNC_ARG   unknown             $2      'RETURN_CODE_NOT_SAVED'
          6        SEND_FUNC_ARG                                            $2
          7        DO_FCALL                                      0          
    9     8    > > RETURN                                                   null

End of function save

End of class Child.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.51 ms | 1395 KiB | 13 Q