3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = strtotime('04-03-12'); $end = strtotime('15-06-12'); For($i = $start; $i<=$end;){ $array = explode(" ", date("Y m d", $i)); $y = $array[0]; $m = $array[1]; $d = $array[2]; $arr[$y][$m][$d] = 1; $i += 86400; } Var_dump($arr);

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 10
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 10
Branch analysis from position: 32
Branch analysis from position: 10
filename:       /in/OOEpf
function name:  (null)
number of ops:  36
compiled vars:  !0 = $start, !1 = $end, !2 = $i, !3 = $array, !4 = $y, !5 = $m, !6 = $d, !7 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '04-03-12'
          2        DO_ICALL                                         $8      
          3        ASSIGN                                                   !0, $8
    4     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 '15-06-12'
          6        DO_ICALL                                         $10     
          7        ASSIGN                                                   !1, $10
    6     8        ASSIGN                                                   !2, !0
          9      > JMP                                                      ->30
    7    10    >   INIT_FCALL                                               'explode'
         11        SEND_VAL                                                 '+'
         12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'Y+m+d'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $13     
         16        SEND_VAR                                                 $13
         17        DO_ICALL                                         $14     
         18        ASSIGN                                                   !3, $14
    8    19        FETCH_DIM_R                                      ~16     !3, 0
         20        ASSIGN                                                   !4, ~16
    9    21        FETCH_DIM_R                                      ~18     !3, 1
         22        ASSIGN                                                   !5, ~18
   10    23        FETCH_DIM_R                                      ~20     !3, 2
         24        ASSIGN                                                   !6, ~20
   11    25        FETCH_DIM_W                                      $22     !7, !4
         26        FETCH_DIM_W                                      $23     $22, !5
         27        ASSIGN_DIM                                               $23, !6
         28        OP_DATA                                                  1
   12    29        ASSIGN_OP                                     1          !2, 86400
    6    30    >   IS_SMALLER_OR_EQUAL                                      !2, !1
         31      > JMPNZ                                                    ~26, ->10
   15    32    >   INIT_FCALL                                               'var_dump'
         33        SEND_VAR                                                 !7
         34        DO_ICALL                                                 
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.91 ms | 1009 KiB | 17 Q