3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = ['key' => ['v1', 'v2']]; foreach ($array as $k => [$v1, $v2]) { var_dump($k, $v1, $v2); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 15
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 15
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/b5qm7
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array, !1 = $v1, !2 = $v2, !3 = $k
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    5     1      > FE_RESET_R                                           $5      !0, ->15
          2    > > FE_FETCH_R                                           ~11     $5, $6, ->15
          3    >   FETCH_LIST_R                                         $7      $6, 0
          4        ASSIGN                                                       !1, $7
          5        FETCH_LIST_R                                         $9      $6, 1
          6        ASSIGN                                                       !2, $9
          7        FREE                                                         $6
          8        ASSIGN                                                       !3, ~11
    6     9        INIT_FCALL                                                   'var_dump'
         10        SEND_VAR                                                     !3
         11        SEND_VAR                                                     !1
         12        SEND_VAR                                                     !2
         13        DO_ICALL                                                     
    5    14      > JMP                                                          ->2
         15    >   FE_FREE                                                      $5
    7    16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
174.49 ms | 1637 KiB | 14 Q