3v4l.org

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

Class helloWorld: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.21 ms | 1394 KiB | 15 Q