3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST = [ 'db_num' => ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10'], 'db_amnt' => ['100', '125', '150', '175', '200', '225', '250', '275', '300', '325'] ]; foreach ($_POST['db_num'] as $key => $num) { $amnt = $_POST['db_amnt'][$key]; echo "\n {$num} & {$amnt}"; }
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
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/cHdli
function name:  (null)
number of ops:  19
compiled vars:  !0 = $num, !1 = $key, !2 = $amnt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $3      '_POST'
          1        ASSIGN                                                   $3, <array>
    8     2        FETCH_R                      global              ~5      '_POST'
          3        FETCH_DIM_R                                      ~6      ~5, 'db_num'
          4      > FE_RESET_R                                       $7      ~6, ->17
          5    > > FE_FETCH_R                                       ~8      $7, !0, ->17
          6    >   ASSIGN                                                   !1, ~8
    9     7        FETCH_R                      global              ~10     '_POST'
          8        FETCH_DIM_R                                      ~11     ~10, 'db_amnt'
          9        FETCH_DIM_R                                      ~12     ~11, !1
         10        ASSIGN                                                   !2, ~12
   10    11        ROPE_INIT                                     4  ~15     '%0A+'
         12        ROPE_ADD                                      1  ~15     ~15, !0
         13        ROPE_ADD                                      2  ~15     ~15, '+%26+'
         14        ROPE_END                                      3  ~14     ~15, !2
         15        ECHO                                                     ~14
    8    16      > JMP                                                      ->5
         17    >   FE_FREE                                                  $7
   11    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.02 ms | 1429 KiB | 13 Q