3v4l.org

run code in 300+ PHP versions simultaneously
<?php class me { public $arm; public $leg; public function __construct() { $this->arm = 'beautiful'; $this->leg = 'pretty'; } public function setLeg($l) { $this->leg = $l; } public function getLeg() { return $this->leg; } } class myBio extends me { public $bio; public function __construc() { parent::__construct(); $this->bio = $this->getLeg(); } public function newLeg() { var_dump($this->bio); } public function tryLeg() { $this->leg = $this->getLeg(); print $this->leg; } } $mB = new myBio(); $mB->newLeg(); $mB->tryLeg();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9uIhD
function name:  (null)
number of ops:  8
compiled vars:  !0 = $mB
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   46     0  E >   NEW                                              $1      'myBio'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   47     3        INIT_METHOD_CALL                                         !0, 'newLeg'
          4        DO_FCALL                                      0          
   48     5        INIT_METHOD_CALL                                         !0, 'tryLeg'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class me:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9uIhD
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN_OBJ                                               'arm'
          1        OP_DATA                                                  'beautiful'
   10     2        ASSIGN_OBJ                                               'leg'
          3        OP_DATA                                                  'pretty'
   11     4      > RETURN                                                   null

End of function __construct

Function setleg:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9uIhD
function name:  setLeg
number of ops:  4
compiled vars:  !0 = $l
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   15     1        ASSIGN_OBJ                                               'leg'
          2        OP_DATA                                                  !0
   16     3      > RETURN                                                   null

End of function setleg

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

End of function getleg

End of class me.

Class myBio:
Function __construc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9uIhD
function name:  __construc
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   31     0  E >   INIT_STATIC_METHOD_CALL                                  
          1        DO_FCALL                                      0          
   32     2        INIT_METHOD_CALL                                         'getLeg'
          3        DO_FCALL                                      0  $2      
          4        ASSIGN_OBJ                                               'bio'
          5        OP_DATA                                                  $2
   33     6      > RETURN                                                   null

End of function __construc

Function newleg:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9uIhD
function name:  newLeg
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   37     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_OBJ_R                                      ~0      'bio'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   38     4      > RETURN                                                   null

End of function newleg

Function tryleg:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9uIhD
function name:  tryLeg
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   41     0  E >   INIT_METHOD_CALL                                         'getLeg'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN_OBJ                                               'leg'
          3        OP_DATA                                                  $1
   42     4        FETCH_OBJ_R                                      ~2      'leg'
          5        ECHO                                                     ~2
   43     6      > RETURN                                                   null

End of function tryleg

Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9uIhD
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN_OBJ                                               'arm'
          1        OP_DATA                                                  'beautiful'
   10     2        ASSIGN_OBJ                                               'leg'
          3        OP_DATA                                                  'pretty'
   11     4      > RETURN                                                   null

End of function __construct

Function setleg:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9uIhD
function name:  setLeg
number of ops:  4
compiled vars:  !0 = $l
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   15     1        ASSIGN_OBJ                                               'leg'
          2        OP_DATA                                                  !0
   16     3      > RETURN                                                   null

End of function setleg

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

End of function getleg

End of class myBio.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
201.6 ms | 1396 KiB | 15 Q