3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Model { public static $RETURN_CODE_NOT_SAVED = 4; public function save(Model $model) { // saving model if(!$model) { $this->setReturnCode(static::$RETURN_CODE_NOT_SAVED); } } } class SomeModel extends Parentt { public static $RETURN_CODE_NOT_SAVED = 11; //public function save() { // parent::save(); //} }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M6qgX
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   DECLARE_CLASS                                            'somemodel', 'parentt'
   17     1      > RETURN                                                   1

Class Model:
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/M6qgX
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 Model.

Class SomeModel: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.32 ms | 1393 KiB | 13 Q