3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "lá"; echo $string[0] , "\n" , $string[1] , "\n" , $string[2]; echo "\n\n"; $string[1] = "B"; echo $string;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uu2kY
function name:  (null)
number of ops:  14
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'l%C3%A1'
    3     1        FETCH_DIM_R                                      ~2      !0, 0
          2        ECHO                                                     ~2
          3        ECHO                                                     '%0A'
          4        FETCH_DIM_R                                      ~3      !0, 1
          5        ECHO                                                     ~3
          6        ECHO                                                     '%0A'
          7        FETCH_DIM_R                                      ~4      !0, 2
          8        ECHO                                                     ~4
    5     9        ECHO                                                     '%0A%0A'
    6    10        ASSIGN_DIM                                               !0, 1
         11        OP_DATA                                                  'B'
    7    12        ECHO                                                     !0
    8    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.14 ms | 1384 KiB | 13 Q