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;){ List($y, $m, $d) = explode(" ", date("Y m d", $i)); $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/1m8aM
function name:  (null)
number of ops:  36
compiled vars:  !0 = $start, !1 = $end, !2 = $i, !3 = $y, !4 = $m, !5 = $d, !6 = $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                                         $7      
          3        ASSIGN                                                   !0, $7
    4     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 '15-06-12'
          6        DO_ICALL                                         $9      
          7        ASSIGN                                                   !1, $9
    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                                         $12     
         16        SEND_VAR                                                 $12
         17        DO_ICALL                                         $13     
         18        FETCH_LIST_R                                     $14     $13, 0
         19        ASSIGN                                                   !3, $14
         20        FETCH_LIST_R                                     $16     $13, 1
         21        ASSIGN                                                   !4, $16
         22        FETCH_LIST_R                                     $18     $13, 2
         23        ASSIGN                                                   !5, $18
         24        FREE                                                     $13
    8    25        FETCH_DIM_W                                      $20     !6, !3
         26        FETCH_DIM_W                                      $21     $20, !4
         27        ASSIGN_DIM                                               $21, !5
         28        OP_DATA                                                  1
    9    29        ASSIGN_OP                                     1          !2, 86400
    6    30    >   IS_SMALLER_OR_EQUAL                                      !2, !1
         31      > JMPNZ                                                    ~24, ->10
   12    32    >   INIT_FCALL                                               'var_dump'
         33        SEND_VAR                                                 !6
         34        DO_ICALL                                                 
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.1 ms | 1441 KiB | 17 Q