3v4l.org

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

Class helloWorld: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.7 ms | 1393 KiB | 15 Q