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) { list($key, $value) = $row; echo $key .' -> '. $value .'<br />'; } foreach ($arr as list($key, $value)) { echo $key .' -> '. $value .'<br />'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 17
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 17
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
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/oJmE3
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>
    4     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    6     4      > FE_RESET_R                                       $6      !0, ->17
          5    > > FE_FETCH_R                                               $6, !1, ->17
    7     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
    8    12        CONCAT                                           ~12     !2, '+-%3E+'
         13        CONCAT                                           ~13     ~12, !3
         14        CONCAT                                           ~14     ~13, '%3Cbr+%2F%3E'
         15        ECHO                                                     ~14
    6    16      > JMP                                                      ->5
         17    >   FE_FREE                                                  $6
   11    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
   12    25        CONCAT                                           ~21     !2, '+-%3E+'
         26        CONCAT                                           ~22     ~21, !3
         27        CONCAT                                           ~23     ~22, '%3Cbr+%2F%3E'
         28        ECHO                                                     ~23
   11    29      > JMP                                                      ->19
         30    >   FE_FREE                                                  $15
   13    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.5 ms | 1396 KiB | 15 Q