3v4l.org

run code in 300+ PHP versions simultaneously
<?php class NumberValue { protected $m_unitin = false; } class QuantityValue extends NumberValue { public function __construct() { $this->setUnit(); } protected function setUnit() { assert( '$this->m_unitin' ); $this->m_unitin = 'K'; } public function getUnit() { return $this->m_unitin; } } $quantityValue = new QuantityValue(); echo( $quantityValue->getUnit() );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RJJ3P
function name:  (null)
number of ops:  7
compiled vars:  !0 = $quantityValue
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   27     0  E >   NEW                                              $1      'QuantityValue'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   28     3        INIT_METHOD_CALL                                         !0, 'getUnit'
          4        DO_FCALL                                      0  $4      
          5        ECHO                                                     $4
          6      > RETURN                                                   1

Class NumberValue: [no user functions]
Class QuantityValue:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RJJ3P
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_METHOD_CALL                                         'setUnit'
          1        DO_FCALL                                      0          
   14     2      > RETURN                                                   null

End of function __construct

Function setunit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RJJ3P
function name:  setUnit
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   ASSERT_CHECK                                             
          1        INIT_FCALL                                               'assert'
          2        SEND_VAL                                                 '%24this-%3Em_unitin'
          3        SEND_VAL                                                 'assert%28%27%24this-%3Em_unitin%27%29'
          4        DO_ICALL                                                 
   18     5        ASSIGN_OBJ                                               'm_unitin'
          6        OP_DATA                                                  'K'
   19     7      > RETURN                                                   null

End of function setunit

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

End of function getunit

End of class QuantityValue.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.53 ms | 1396 KiB | 15 Q