3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MinhaClasse { public $atributo1 = "Este Valor"; function getEste() { return $this->atributo1; } function getAquele($param) { return "\n$param"; } } $obj = new MinhaClasse(); echo $obj->getEste(); echo MinhaClasse::getAquele("Meu Valor");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EpOuE
function name:  (null)
number of ops:  11
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'MinhaClasse'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   13     3        INIT_METHOD_CALL                                         !0, 'getEste'
          4        DO_FCALL                                      0  $4      
          5        ECHO                                                     $4
   14     6        INIT_STATIC_METHOD_CALL                                  'MinhaClasse', 'getAquele'
          7        SEND_VAL                                                 'Meu+Valor'
          8        DO_FCALL                                      0  $5      
          9        ECHO                                                     $5
         10      > RETURN                                                   1

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

End of function geteste

Function getaquele:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EpOuE
function name:  getAquele
number of ops:  5
compiled vars:  !0 = $param
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        NOP                                                      
          2        FAST_CONCAT                                      ~1      '%0A', !0
          3      > RETURN                                                   ~1
   10     4*     > RETURN                                                   null

End of function getaquele

End of class MinhaClasse.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.07 ms | 1394 KiB | 13 Q