3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Auto{ public $farba; public $nazov; public function _construct2($farba, $nazov){ $this->farba = $farba; $this->nazov = $nazov; } public function getFarba(){ return $this->farba; } public function getNazov(){ return $this->nazov; } public function _toString(){ return "Auto: {$this->nazov} {$this->farba}"; } } #$cars = array(new Auto("Zlta", "Volvo"), new Auto("Cervena", "Skoda"), new Auto("Zelena", "Octavia")); $car = new Auto("Fialova", "Toyota"); echo $car->farba; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0PGN6
function name:  (null)
number of ops:  8
compiled vars:  !0 = $car
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   NEW                                              $1      'Auto'
          1        SEND_VAL_EX                                              'Fialova'
          2        SEND_VAL_EX                                              'Toyota'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   27     5        FETCH_OBJ_R                                      ~4      !0, 'farba'
          6        ECHO                                                     ~4
   28     7      > RETURN                                                   1

Class Auto:
Function _construct2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0PGN6
function name:  _construct2
number of ops:  7
compiled vars:  !0 = $farba, !1 = $nazov
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2        ASSIGN_OBJ                                               'farba'
          3        OP_DATA                                                  !0
    8     4        ASSIGN_OBJ                                               'nazov'
          5        OP_DATA                                                  !1
    9     6      > RETURN                                                   null

End of function _construct2

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

End of function getfarba

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

End of function getnazov

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

End of function _tostring

End of class Auto.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.98 ms | 1399 KiB | 13 Q