3v4l.org

run code in 300+ PHP versions simultaneously
<?php // from 2015 through all of 2018, expect 35,064 elements in the deepest level. $start = 2018; $end = 2018; $years = []; foreach (range($start, $end) as $y) { $months = []; for ($m = 1; $m <= 12; ++$m) { $lastDayOfMonth = date('t', strtotime("$y-$m-01")); $days = []; for ($d = 1; $d <= $lastDayOfMonth; ++$d) { $days[] = range(0, 23); } $months[] = $days; } $years[] = $months; } var_export($years);

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 44
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 44
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 12
Branch analysis from position: 41
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 27
Branch analysis from position: 36
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 12
Branch analysis from position: 41
Branch analysis from position: 12
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 27
Branch analysis from position: 36
Branch analysis from position: 27
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 44
filename:       /in/dP742
function name:  (null)
number of ops:  49
compiled vars:  !0 = $start, !1 = $end, !2 = $years, !3 = $y, !4 = $months, !5 = $m, !6 = $lastDayOfMonth, !7 = $days, !8 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 2018
    5     1        ASSIGN                                                   !1, 2018
    6     2        ASSIGN                                                   !2, <array>
    7     3        INIT_FCALL                                               'range'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $12     
          7      > FE_RESET_R                                       $13     $12, ->44
          8    > > FE_FETCH_R                                               $13, !3, ->44
    8     9    >   ASSIGN                                                   !4, <array>
    9    10        ASSIGN                                                   !5, 1
         11      > JMP                                                      ->39
   10    12    >   INIT_FCALL                                               'date'
         13        SEND_VAL                                                 't'
         14        INIT_FCALL                                               'strtotime'
         15        ROPE_INIT                                     4  ~17     !3
         16        ROPE_ADD                                      1  ~17     ~17, '-'
         17        ROPE_ADD                                      2  ~17     ~17, !5
         18        ROPE_END                                      3  ~16     ~17, '-01'
         19        SEND_VAL                                                 ~16
         20        DO_ICALL                                         $19     
         21        SEND_VAR                                                 $19
         22        DO_ICALL                                         $20     
         23        ASSIGN                                                   !6, $20
   11    24        ASSIGN                                                   !7, <array>
   12    25        ASSIGN                                                   !8, 1
         26      > JMP                                                      ->34
   13    27    >   INIT_FCALL                                               'range'
         28        SEND_VAL                                                 0
         29        SEND_VAL                                                 23
         30        DO_ICALL                                         $25     
         31        ASSIGN_DIM                                               !7
         32        OP_DATA                                                  $25
   12    33        PRE_INC                                                  !8
         34    >   IS_SMALLER_OR_EQUAL                                      !8, !6
         35      > JMPNZ                                                    ~27, ->27
   15    36    >   ASSIGN_DIM                                               !4
         37        OP_DATA                                                  !7
    9    38        PRE_INC                                                  !5
         39    >   IS_SMALLER_OR_EQUAL                                      !5, 12
         40      > JMPNZ                                                    ~30, ->12
   17    41    >   ASSIGN_DIM                                               !2
         42        OP_DATA                                                  !4
    7    43      > JMP                                                      ->8
         44    >   FE_FREE                                                  $13
   19    45        INIT_FCALL                                               'var_export'
         46        SEND_VAR                                                 !2
         47        DO_ICALL                                                 
         48      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.87 ms | 1018 KiB | 17 Q