3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = array('a','b','c','d','e','f','g','h','i','j','k','l'); for($i = 0; $i <= count($matches[0]); $i++ ) echo "href = {$matches[1][$i]}, alt = {$matches[2][$i]}";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 3
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 3
Branch analysis from position: 17
Branch analysis from position: 3
filename:       /in/5bqdR
function name:  (null)
number of ops:  18
compiled vars:  !0 = $matches, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->13
    5     3    >   ROPE_INIT                                     4  ~9      'href+%3D+'
          4        FETCH_DIM_R                                      ~4      !0, 1
          5        FETCH_DIM_R                                      ~5      ~4, !1
          6        ROPE_ADD                                      1  ~9      ~9, ~5
          7        ROPE_ADD                                      2  ~9      ~9, '%2C+alt+%3D+'
          8        FETCH_DIM_R                                      ~6      !0, 2
          9        FETCH_DIM_R                                      ~7      ~6, !1
         10        ROPE_END                                      3  ~8      ~9, ~7
         11        ECHO                                                     ~8
    4    12        PRE_INC                                                  !1
         13    >   FETCH_DIM_R                                      ~12     !0, 0
         14        COUNT                                            ~13     ~12
         15        IS_SMALLER_OR_EQUAL                                      !1, ~13
         16      > JMPNZ                                                    ~14, ->3
    5    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.76 ms | 1394 KiB | 13 Q