3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('ça', 'ne', 'marche', 'pas'); foreach($array as $key => $value) { unset($array[1]); unset($array[3]); echo $value." "; } echo "\n"; $array = array('ça', 'ne', 'marche', 'pas'); foreach($array as $key => &$value) { unset($array[1]); unset($array[3]); echo $value." "; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 9
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 9
2 jumps found. (Code = 125) Position 1 = 13, Position 2 = 20
Branch analysis from position: 13
2 jumps found. (Code = 126) Position 1 = 14, Position 2 = 20
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 9
filename:       /in/YdKEP
function name:  (null)
number of ops:  22
compiled vars:  !0 = $array, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1      > FE_RESET_R                                       $4      !0, ->9
          2    > > FE_FETCH_R                                       ~5      $4, !1, ->9
          3    >   ASSIGN                                                   !2, ~5
    6     4        UNSET_DIM                                                !0, 1
    7     5        UNSET_DIM                                                !0, 3
    8     6        CONCAT                                           ~7      !1, '+'
          7        ECHO                                                     ~7
    4     8      > JMP                                                      ->2
          9    >   FE_FREE                                                  $4
   11    10        ECHO                                                     '%0A'
   13    11        ASSIGN                                                   !0, <array>
   14    12      > FE_RESET_RW                                      $9      !0, ->20
         13    > > FE_FETCH_RW                                      ~10     $9, !1, ->20
         14    >   ASSIGN                                                   !2, ~10
   16    15        UNSET_DIM                                                !0, 1
   17    16        UNSET_DIM                                                !0, 3
   18    17        CONCAT                                           ~12     !1, '+'
         18        ECHO                                                     ~12
   14    19      > JMP                                                      ->13
         20    >   FE_FREE                                                  $9
   19    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.93 ms | 1394 KiB | 13 Q