3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.18 ms | 1394 KiB | 17 Q