3v4l.org

run code in 300+ PHP versions simultaneously
<?php $y = ['2014','2015','2016','2017','2018','2019','2020']; for($i = 0, $c = count($y); $i < $c; $i++) //var_dump($i,$y[$i]); echo $i; echo $y[$i]; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 5
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 5
Branch analysis from position: 9
Branch analysis from position: 5
filename:       /in/eNbQB
function name:  (null)
number of ops:  12
compiled vars:  !0 = $y, !1 = $i, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, 0
          2        COUNT                                            ~5      !0
          3        ASSIGN                                                   !2, ~5
          4      > JMP                                                      ->7
   13     5    >   ECHO                                                     !1
    8     6        PRE_INC                                                  !1
          7    >   IS_SMALLER                                               !1, !2
          8      > JMPNZ                                                    ~8, ->5
   14     9    >   FETCH_DIM_R                                      ~9      !0, !1
         10        ECHO                                                     ~9
   20    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.64 ms | 1393 KiB | 13 Q