3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.08 ms | 1400 KiB | 15 Q