3v4l.org

run code in 500+ PHP versions simultaneously
<?php $tweetLookup = [ 'Four', 'One', 'Two', 'Three', ]; for ($i = 0; $i <= 25; $i++) { echo $i . ": " . $tweetLookup[date("d", strtotime( "+$i days")) % 4]; echo "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 3
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 3
Branch analysis from position: 22
Branch analysis from position: 3
filename:       /in/cOM1f
function name:  (null)
number of ops:  23
compiled vars:  !0 = $tweetLookup, !1 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    8     1        ASSIGN                                                       !1, 0
          2      > JMP                                                          ->20
    9     3    >   CONCAT                                               ~4      !1, '%3A+'
          4        INIT_FCALL                                                   'date'
          5        SEND_VAL                                                     'd'
          6        INIT_FCALL                                                   'strtotime'
          7        ROPE_INIT                                         3  ~6      '%2B'
          8        ROPE_ADD                                          1  ~6      ~6, !1
          9        ROPE_END                                          2  ~5      ~6, '+days'
         10        SEND_VAL                                                     ~5
         11        DO_ICALL                                             $8      
         12        SEND_VAR                                                     $8
         13        DO_ICALL                                             $9      
         14        MOD                                                  ~10     $9, 4
         15        FETCH_DIM_R                                          ~11     !0, ~10
         16        CONCAT                                               ~12     ~4, ~11
         17        ECHO                                                         ~12
   10    18        ECHO                                                         '%0A'
    8    19        PRE_INC                                                      !1
         20    >   IS_SMALLER_OR_EQUAL                                          !1, 25
         21      > JMPNZ                                                        ~14, ->3
   11    22    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.14 ms | 1900 KiB | 15 Q