3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Pessoa{ public function getIdade(){ return $idade = 28 ; } public function getNome(){ return $nome = 'Cobaia'; } } $p = new Pessoa(); echo $p->getIdade();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QhcLT
function name:  (null)
number of ops:  7
compiled vars:  !0 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $1      'Pessoa'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   12     3        INIT_METHOD_CALL                                         !0, 'getIdade'
          4        DO_FCALL                                      0  $4      
          5        ECHO                                                     $4
          6      > RETURN                                                   1

Class Pessoa:
Function getidade:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QhcLT
function name:  getIdade
number of ops:  3
compiled vars:  !0 = $idade
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                           ~1      !0, 28
          1      > RETURN                                                   ~1
    5     2*     > RETURN                                                   null

End of function getidade

Function getnome:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QhcLT
function name:  getNome
number of ops:  3
compiled vars:  !0 = $nome
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                           ~1      !0, 'Cobaia'
          1      > RETURN                                                   ~1
    9     2*     > RETURN                                                   null

End of function getnome

End of class Pessoa.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.51 ms | 1385 KiB | 13 Q