3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [[1,2],[3,4]]; //foreach($array as list($x, $y)) { // echo $x . ' : ' . $y . PHP_EOL; //} while(list(, list($x,$y)) = each($array)) { echo $x . ' : ' . $y . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 2
Branch analysis from position: 16
Branch analysis from position: 2
filename:       /in/KlLhW
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array, !1 = $x, !2 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1      > JMP                                                      ->6
          2    >   CONCAT                                           ~4      !1, '+%3A+'
          3        CONCAT                                           ~5      ~4, !2
          4        CONCAT                                           ~6      ~5, '%0A'
          5        ECHO                                                     ~6
          6    >   INIT_FCALL_BY_NAME                                       'each'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0  $7      
          9        FETCH_LIST_R                                     $8      $7, 1
         10        FETCH_LIST_R                                     $9      $8, 0
         11        ASSIGN                                                   !1, $9
         12        FETCH_LIST_R                                     $11     $8, 1
         13        ASSIGN                                                   !2, $11
         14        FREE                                                     $8
         15      > JMPNZ                                                    $7, ->2
         16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.85 ms | 1394 KiB | 13 Q