3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Item { public $id; public $den; public $kassa; function __construct($id, $den, $kassa){ $this->id = $id; $this->den = $den; $this->kassa = $kassa; } function getData() { return "{$this->id}, {$this->den}, {$this->kassa}"; } } $item = new Item(1, 2, 3); echo $item->getData;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9Krun
function name:  (null)
number of ops:  9
compiled vars:  !0 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   NEW                                              $1      'Item'
          1        SEND_VAL_EX                                              1
          2        SEND_VAL_EX                                              2
          3        SEND_VAL_EX                                              3
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $1
   25     6        FETCH_OBJ_R                                      ~4      !0, 'getData'
          7        ECHO                                                     ~4
          8      > RETURN                                                   1

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

End of function __construct

Function getdata:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9Krun
function name:  getData
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   FETCH_OBJ_R                                      ~0      'id'
          1        ROPE_INIT                                     5  ~4      ~0
          2        ROPE_ADD                                      1  ~4      ~4, '%2C+'
          3        FETCH_OBJ_R                                      ~1      'den'
          4        ROPE_ADD                                      2  ~4      ~4, ~1
          5        ROPE_ADD                                      3  ~4      ~4, '%2C+'
          6        FETCH_OBJ_R                                      ~2      'kassa'
          7        ROPE_END                                      4  ~3      ~4, ~2
          8      > RETURN                                                   ~3
   21     9*     > RETURN                                                   null

End of function getdata

End of class Item.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.4 ms | 1395 KiB | 13 Q