3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface ValueHost { public function get_value($code=null); } trait Value_has_registers { public function get_value($code=null) { if ($code===null) return parent::get_value(); else return $this->regs[$code]; } } abstract class Value { protected $content; public function get_value() { return $this->content; } } class Value_entity /* (A) */ extends Value /* (A) ends */ implements ValueHost { /* (B) */ use Value_has_registers; /* (B) ends */ /* (C) public function get_value($code=null) { if ($code===null) return parent::get_value(); else return $this->regs[$code]; } (C) ends */ }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TcQqM
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   DECLARE_CLASS                                            'value_entity', 'value'
   21     1      > RETURN                                                   1

Class ValueHost:
Function get_value:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TcQqM
function name:  get_value
number of ops:  2
compiled vars:  !0 = $code
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      null
          1      > RETURN                                                   null

End of function get_value

End of class ValueHost.

Class Value_has_registers:
Function get_value:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TcQqM
function name:  get_value
number of ops:  11
compiled vars:  !0 = $code
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV_INIT                                        !0      null
    6     1        TYPE_CHECK                                    2          !0
          2      > JMPZ                                                     ~1, ->7
          3    >   INIT_STATIC_METHOD_CALL                                  'get_value'
          4        DO_FCALL                                      0  $2      
          5      > RETURN                                                   $2
          6*       JMP                                                      ->10
          7    >   FETCH_OBJ_R                                      ~3      'regs'
          8        FETCH_DIM_R                                      ~4      ~3, !0
          9      > RETURN                                                   ~4
    7    10*     > RETURN                                                   null

End of function get_value

End of class Value_has_registers.

Class Value:
Function get_value:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TcQqM
function name:  get_value
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   FETCH_OBJ_R                                      ~0      'content'
          1      > RETURN                                                   ~0
          2*     > RETURN                                                   null

End of function get_value

End of class Value.

Class Value_entity: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.07 ms | 1399 KiB | 13 Q