3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.43 ms | 1394 KiB | 17 Q