3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dates = array('2014-25-09', '2015-25-09', '2016-25-09'); foreach($dates as $id => $date) { $displayId = $id + 1; echo "<span class='countdown' id='countdown{$displayId}'>2014-25-09</span>\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 11
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 11
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/Sj29L
function name:  (null)
number of ops:  13
compiled vars:  !0 = $dates, !1 = $date, !2 = $id, !3 = $displayId
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1      > FE_RESET_R                                       $5      !0, ->11
          2    > > FE_FETCH_R                                       ~6      $5, !1, ->11
          3    >   ASSIGN                                                   !2, ~6
    4     4        ADD                                              ~8      !2, 1
          5        ASSIGN                                                   !3, ~8
    5     6        ROPE_INIT                                     3  ~11     '%3Cspan+class%3D%27countdown%27+id%3D%27countdown'
          7        ROPE_ADD                                      1  ~11     ~11, !3
          8        ROPE_END                                      2  ~10     ~11, '%27%3E2014-25-09%3C%2Fspan%3E%0A'
          9        ECHO                                                     ~10
    3    10      > JMP                                                      ->2
         11    >   FE_FREE                                                  $5
    6    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.88 ms | 1393 KiB | 13 Q