3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Products{ protected $_title; protected $_category; protected $_price; public function __construct($title, $category, $price){ $this->_title = $title; $this->_category = $category; $this->_price = $price; } public function getTitle(){ return $this->title; } public function getCategory(){ return $this->category; } public function getPrice(){ return $this->price; } } $product = new Products('Title', 'Category', 45); $product->getPrice(); // 45
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HioML
function name:  (null)
number of ops:  9
compiled vars:  !0 = $product
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   NEW                                              $1      'Products'
          1        SEND_VAL_EX                                              'Title'
          2        SEND_VAL_EX                                              'Category'
          3        SEND_VAL_EX                                              45
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $1
   27     6        INIT_METHOD_CALL                                         !0, 'getPrice'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class Products:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HioML
function name:  __construct
number of ops:  10
compiled vars:  !0 = $title, !1 = $category, !2 = $price
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
   10     3        ASSIGN_OBJ                                               '_title'
          4        OP_DATA                                                  !0
   11     5        ASSIGN_OBJ                                               '_category'
          6        OP_DATA                                                  !1
   12     7        ASSIGN_OBJ                                               '_price'
          8        OP_DATA                                                  !2
   13     9      > RETURN                                                   null

End of function __construct

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

End of function gettitle

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

End of function getcategory

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

End of function getprice

End of class Products.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.8 ms | 1399 KiB | 13 Q