3v4l.org

run code in 300+ PHP versions simultaneously
<?php class helloWorld { const ONE = 1; public $array = array( 'VALUE FIRST', 'VALUE SECOND', 'VALUE THIRD', ); public function getShit () { $this->array[self::ONE] = 'hugo'; return $this->array; } } $hello = new helloWorld(); $hello->array[1] = 'sas'; print_r($hello->getShit());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6ajd5
function name:  (null)
number of ops:  12
compiled vars:  !0 = $hello
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   NEW                                              $1      'helloWorld'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   21     3        FETCH_OBJ_W                                      $4      !0, 'array'
          4        ASSIGN_DIM                                               $4, 1
          5        OP_DATA                                                  'sas'
   23     6        INIT_FCALL                                               'print_r'
          7        INIT_METHOD_CALL                                         !0, 'getShit'
          8        DO_FCALL                                      0  $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Class helloWorld:
Function getshit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6ajd5
function name:  getShit
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   FETCH_OBJ_W                                      $0      'array'
          1        ASSIGN_DIM                                               $0, 1
          2        OP_DATA                                                  'hugo'
   16     3        FETCH_OBJ_R                                      ~2      'array'
          4      > RETURN                                                   ~2
   17     5*     > RETURN                                                   null

End of function getshit

End of class helloWorld.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.87 ms | 1395 KiB | 15 Q