3v4l.org

run code in 300+ PHP versions simultaneously
<?php $alpha = array ('a', 'b', 'c', 'd'); $num = array ('1', '2', '3', '4'); foreach ($alpha as $key => $a) { $n = $num[$key]; echo "alpha: >{$a}<, num: >{$n}<\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/uMZIg
function name:  (null)
number of ops:  16
compiled vars:  !0 = $alpha, !1 = $num, !2 = $a, !3 = $key, !4 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    5     2      > FE_RESET_R                                       $7      !0, ->14
          3    > > FE_FETCH_R                                       ~8      $7, !2, ->14
          4    >   ASSIGN                                                   !3, ~8
    6     5        FETCH_DIM_R                                      ~10     !1, !3
          6        ASSIGN                                                   !4, ~10
    7     7        ROPE_INIT                                     5  ~13     'alpha%3A+%3E'
          8        ROPE_ADD                                      1  ~13     ~13, !2
          9        ROPE_ADD                                      2  ~13     ~13, '%3C%2C+num%3A+%3E'
         10        ROPE_ADD                                      3  ~13     ~13, !4
         11        ROPE_END                                      4  ~12     ~13, '%3C%0A'
         12        ECHO                                                     ~12
    5    13      > JMP                                                      ->3
         14    >   FE_FREE                                                  $7
    8    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.86 ms | 1394 KiB | 13 Q