3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Doper { private $name; private $id; public function __construct($id, $name) { $this->name = $name; $this->id = $id; } public function getName() { return $this->name; } /** * Return id * @return int */ public function getId() { return $this->id; } } $doper = new Doper('zuzu', 1); echo '<pre>'; print_r($doper); exit;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/7ITtZ
function name:  (null)
number of ops:  11
compiled vars:  !0 = $doper
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   NEW                                              $1      'Doper'
          1        SEND_VAL_EX                                              'zuzu'
          2        SEND_VAL_EX                                              1
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   27     5        ECHO                                                     '%3Cpre%3E'
          6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > EXIT                                                     
         10*     > RETURN                                                   1

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

End of function __construct

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

End of function getname

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

End of function getid

End of class Doper.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.83 ms | 1388 KiB | 15 Q