3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [0=>0,1=>1,2=>3,3=>4,4=>5]; //var_dump($arr); foreach($arr as $row) { var_dump($row); list($key, $value) = $row; echo $key .' -> '. $value .'\n'; } foreach ($arr as list($key, $value)) { echo $key .' -> '. $value .'\n'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 17
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 17
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 17
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 30
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 30
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
Branch analysis from position: 17
filename:       /in/M7ML6
function name:  (null)
number of ops:  32
compiled vars:  !0 = $arr, !1 = $row, !2 = $key, !3 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    6     1      > FE_RESET_R                                       $5      !0, ->17
          2    > > FE_FETCH_R                                               $5, !1, ->17
    7     3    >   INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
    8     6        QM_ASSIGN                                        ~7      !1
          7        FETCH_LIST_R                                     $8      ~7, 0
          8        ASSIGN                                                   !2, $8
          9        FETCH_LIST_R                                     $10     ~7, 1
         10        ASSIGN                                                   !3, $10
         11        FREE                                                     ~7
    9    12        CONCAT                                           ~12     !2, '+-%3E+'
         13        CONCAT                                           ~13     ~12, !3
         14        CONCAT                                           ~14     ~13, '%5Cn'
         15        ECHO                                                     ~14
    6    16      > JMP                                                      ->2
         17    >   FE_FREE                                                  $5
   12    18      > FE_RESET_R                                       $15     !0, ->30
         19    > > FE_FETCH_R                                               $15, $16, ->30
         20    >   FETCH_LIST_R                                     $17     $16, 0
         21        ASSIGN                                                   !2, $17
         22        FETCH_LIST_R                                     $19     $16, 1
         23        ASSIGN                                                   !3, $19
         24        FREE                                                     $16
   13    25        CONCAT                                           ~21     !2, '+-%3E+'
         26        CONCAT                                           ~22     ~21, !3
         27        CONCAT                                           ~23     ~22, '%5Cn'
         28        ECHO                                                     ~23
   12    29      > JMP                                                      ->19
         30    >   FE_FREE                                                  $15
   14    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.96 ms | 1396 KiB | 15 Q