3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timestamp = strtotime('next Sunday'); $days = array(); for ($i = 0; $i < 7; $i++) { $days[] = strftime('%A', $timestamp); $timestamp = strtotime('+1 day', $timestamp); } print_r($days);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 7
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 7
Branch analysis from position: 21
Branch analysis from position: 7
filename:       /in/RErLq
function name:  (null)
number of ops:  25
compiled vars:  !0 = $timestamp, !1 = $days, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 'next+Sunday'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        ASSIGN                                                   !1, <array>
    5     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->19
    6     7    >   INIT_FCALL                                               'strftime'
          8        SEND_VAL                                                 '%25A'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $8      
         11        ASSIGN_DIM                                               !1
         12        OP_DATA                                                  $8
    7    13        INIT_FCALL                                               'strtotime'
         14        SEND_VAL                                                 '%2B1+day'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $9      
         17        ASSIGN                                                   !0, $9
    5    18        PRE_INC                                                  !2
         19    >   IS_SMALLER                                               !2, 7
         20      > JMPNZ                                                    ~12, ->7
    9    21    >   INIT_FCALL                                               'print_r'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.34 ms | 1395 KiB | 19 Q