3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Config { private $values = []; public function getValues() { return $this->values; } } $config = new Config(); $config->getValues()['test'] = 'test'; echo $config->getValues()['test'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ET5Dj
function name:  (null)
number of ops:  13
compiled vars:  !0 = $config
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'Config'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   14     3        INIT_METHOD_CALL                                         !0, 'getValues'
          4        DO_FCALL                                      0  $4      
          5        SEPARATE                                         $4      $4
          6        ASSIGN_DIM                                               $4, 'test'
          7        OP_DATA                                                  'test'
   15     8        INIT_METHOD_CALL                                         !0, 'getValues'
          9        DO_FCALL                                      0  $6      
         10        FETCH_DIM_R                                      ~7      $6, 'test'
         11        ECHO                                                     ~7
         12      > RETURN                                                   1

Class Config:
Function getvalues:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ET5Dj
function name:  getValues
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   FETCH_OBJ_R                                      ~0      'values'
          1      > RETURN                                                   ~0
    9     2*     > RETURN                                                   null

End of function getvalues

End of class Config.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.24 ms | 1394 KiB | 13 Q