3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.28 ms | 1393 KiB | 13 Q