3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "14302"; $string[$string[2]] = "4"; print $string;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jTUBS
function name:  (null)
number of ops:  6
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '14302'
    5     1        FETCH_DIM_R                                      ~2      !0, 2
          2        ASSIGN_DIM                                               !0, ~2
          3        OP_DATA                                                  '4'
    7     4        ECHO                                                     !0
          5      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.49 ms | 1392 KiB | 13 Q