3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = "hello"; $foo[0] = $foo[0] + 1; var_dump($foo); $foo[0]++; var_dump($foo); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mqvhe
function name:  (null)
number of ops:  14
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'hello'
    4     1        FETCH_DIM_R                                      ~3      !0, 0
          2        ADD                                              ~4      ~3, 1
          3        ASSIGN_DIM                                               !0, 0
          4        OP_DATA                                                  ~4
    5     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    7     8        FETCH_DIM_RW                                     $6      !0, 0
          9        PRE_INC                                                  $6
    8    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
    9    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
213.89 ms | 1394 KiB | 15 Q