3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Tim { protected $_nome; public function setName($nome) { $this->_nome = $nome; } public function getName() { return $this->_nome; } } $t = new Tim(); $t->setName = "Maia"; echo $t->getName();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FHcHg
function name:  (null)
number of ops:  9
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'Tim'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        ASSIGN_OBJ                                               !0, 'setName'
          4        OP_DATA                                                  'Maia'
   16     5        INIT_METHOD_CALL                                         !0, 'getName'
          6        DO_FCALL                                      0  $5      
          7        ECHO                                                     $5
          8      > RETURN                                                   1

Class Tim:
Function setname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FHcHg
function name:  setName
number of ops:  4
compiled vars:  !0 = $nome
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ASSIGN_OBJ                                               '_nome'
          2        OP_DATA                                                  !0
    7     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/FHcHg
function name:  getName
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   FETCH_OBJ_R                                      ~0      '_nome'
          1      > RETURN                                                   ~0
   11     2*     > RETURN                                                   null

End of function getname

End of class Tim.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.39 ms | 1394 KiB | 13 Q