3v4l.org

run code in 300+ PHP versions simultaneously
<?php class GoodBigMamaHuman { protected $name = 'Payton'; public function __construct() { var_dump($this->name); } public function setName($name) { $this->name = $name; } public function getName() { return $this->age; } } class GoodLilBabyHuman extends BigMamaHuman { public function __construct() { var_dump($this->name); } } $mama = new BigMamaHuman(); $baby = new LilBabyHuman();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hbFAF
function name:  (null)
number of ops:  8
compiled vars:  !0 = $mama, !1 = $baby
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   DECLARE_CLASS                                            'goodlilbabyhuman', 'bigmamahuman'
   25     1        NEW                                              $2      'BigMamaHuman'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   27     4        NEW                                              $5      'LilBabyHuman'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $5
          7      > RETURN                                                   1

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

End of function __construct

Function setname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hbFAF
function name:  setName
number of ops:  4
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1        ASSIGN_OBJ                                               'name'
          2        OP_DATA                                                  !0
   12     3      > RETURN                                                   null

End of function setname

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

End of function getname

End of class GoodBigMamaHuman.

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

End of function __construct

End of class GoodLilBabyHuman.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.87 ms | 1400 KiB | 15 Q