3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("NEE", 99); define("KAN", 1); define("LIEVER_NIET", 2); define("JA", 0); $excludedRanges = [ ['2017-07-20', '2017-07-21', 'Python', NEE], ['2017-08-14', '2017-08-15', 'Python', NEE], ['2017-09-04', '2017-09-08', 'Joris en de Draak', NEE], ['2017-09-04', '2017-11-28', 'De Tuinman en de Fakir', KAN], ['2017-09-04', '2017-09-04', 'Spookslot', JA], ['2017-09-11', '2017-09-22', 'Fata Morgana', LIEVER_NIET], ['2017-09-11', '2017-12-01', 'Python', KAN], ['2017-09-11', '2017-09-15', 'De Oude Tufferbaan', JA], ['2017-09-25', '2017-09-29', 'Carnaval Festival', KAN], ['2017-10-02', '2017-10-06', 'Villa Volta', JA], ['2017-10-02', '2017-10-13', 'Gondoletta', JA], ['2017-10-07', '2017-10-13', 'Aquanura', KAN], ]; $startDate = '2017-09-01'; $endDate = '2017-12-31'; $startDay = date('z', strtotime($startDate)); $endDay = date('z', strtotime($endDate)); # Only wednesdays and fridays $acceptedDays = [3, 5]; for($i = $startDay, $j = 0; $i <= $endDay; $i++, $j++) { $date = date("Y-m-d", strtotime($startDate . " +" . $j . ' days')); $dayOfWeek = date("w", strtotime($date)); if (!in_array($dayOfWeek, $acceptedDays)) { continue; } if (($closed = isAnAttractionClosed($i, $excludedRanges)) !== false) { $highest = getHighestAnswer($i, $excludedRanges); echo date("d-m-Y", strtotime($date)) . ': ' . getClosedAttractions($i, $excludedRanges) . ' gesloten. '; switch ($highest) { case NEE: echo 'Nee.'; break; case KAN: echo 'Kan.'; break; case LIEVER_NIET: echo 'Liever niet.'; break; default: echo 'Ja.'; break; } echo PHP_EOL; continue; } echo date("d-m-Y", strtotime($date)) . ': Ja' . PHP_EOL; } /** * @param int $dayOfTheYear * @param array $closedAttractions * @return bool */ function isAnAttractionClosed($dayOfTheYear, $closedAttractions) { foreach ($closedAttractions as $closed) { $start = date('z', strtotime($closed[0])); $end = date('z', strtotime($closed[1])); if ($dayOfTheYear >= $start && $dayOfTheYear <= $end) { return $closed; } } return false; } function getHighestAnswer($dayOfTheYear, $closedAttractions) { $highest = JA; foreach ($closedAttractions as $closed) { $start = date('z', strtotime($closed[0])); $end = date('z', strtotime($closed[1])); if ($dayOfTheYear >= $start && $dayOfTheYear <= $end) { if ($closed[3] > $highest) { $highest = $closed[3]; } } } return $highest; } function getClosedAttractions($dayOfTheYear, $closedAttractions) { $attractions = ''; foreach ($closedAttractions as $closed) { $start = date('z', strtotime($closed[0])); $end = date('z', strtotime($closed[1])); if ($dayOfTheYear >= $start && $dayOfTheYear <= $end) { $attractions .= $closed[2] . ', '; } } return rtrim($attractions, ', '); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 196
Branch analysis from position: 196
2 jumps found. (Code = 44) Position 1 = 198, Position 2 = 111
Branch analysis from position: 198
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 111
2 jumps found. (Code = 43) Position 1 = 136, Position 2 = 137
Branch analysis from position: 136
1 jumps found. (Code = 42) Position 1 = 194
Branch analysis from position: 194
2 jumps found. (Code = 44) Position 1 = 198, Position 2 = 111
Branch analysis from position: 198
Branch analysis from position: 111
Branch analysis from position: 137
2 jumps found. (Code = 43) Position 1 = 144, Position 2 = 184
Branch analysis from position: 144
2 jumps found. (Code = 44) Position 1 = 167, Position 2 = 174
Branch analysis from position: 167
2 jumps found. (Code = 44) Position 1 = 170, Position 2 = 176
Branch analysis from position: 170
2 jumps found. (Code = 44) Position 1 = 173, Position 2 = 178
Branch analysis from position: 173
1 jumps found. (Code = 42) Position 1 = 180
Branch analysis from position: 180
1 jumps found. (Code = 42) Position 1 = 182
Branch analysis from position: 182
1 jumps found. (Code = 42) Position 1 = 194
Branch analysis from position: 194
Branch analysis from position: 178
1 jumps found. (Code = 42) Position 1 = 182
Branch analysis from position: 182
Branch analysis from position: 176
1 jumps found. (Code = 42) Position 1 = 182
Branch analysis from position: 182
Branch analysis from position: 174
1 jumps found. (Code = 42) Position 1 = 182
Branch analysis from position: 182
Branch analysis from position: 184
2 jumps found. (Code = 44) Position 1 = 198, Position 2 = 111
Branch analysis from position: 198
Branch analysis from position: 111
filename:       /in/a0DU1
function name:  (null)
number of ops:  199
compiled vars:  !0 = $excludedRanges, !1 = $startDate, !2 = $endDate, !3 = $startDay, !4 = $endDay, !5 = $acceptedDays, !6 = $i, !7 = $j, !8 = $date, !9 = $dayOfWeek, !10 = $closed, !11 = $highest
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'NEE'
          2        SEND_VAL                                                 99
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'KAN'
          6        SEND_VAL                                                 1
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'define'
          9        SEND_VAL                                                 'LIEVER_NIET'
         10        SEND_VAL                                                 2
         11        DO_ICALL                                                 
    6    12        INIT_FCALL                                               'define'
         13        SEND_VAL                                                 'JA'
         14        SEND_VAL                                                 0
         15        DO_ICALL                                                 
   10    16        INIT_ARRAY                                       ~16     '2017-07-20'
         17        ADD_ARRAY_ELEMENT                                ~16     '2017-07-21'
         18        ADD_ARRAY_ELEMENT                                ~16     'Python'
         19        FETCH_CONSTANT                                   ~17     'NEE'
         20        ADD_ARRAY_ELEMENT                                ~16     ~17
         21        INIT_ARRAY                                       ~18     ~16
   11    22        INIT_ARRAY                                       ~19     '2017-08-14'
         23        ADD_ARRAY_ELEMENT                                ~19     '2017-08-15'
         24        ADD_ARRAY_ELEMENT                                ~19     'Python'
         25        FETCH_CONSTANT                                   ~20     'NEE'
         26        ADD_ARRAY_ELEMENT                                ~19     ~20
         27        ADD_ARRAY_ELEMENT                                ~18     ~19
   12    28        INIT_ARRAY                                       ~21     '2017-09-04'
         29        ADD_ARRAY_ELEMENT                                ~21     '2017-09-08'
         30        ADD_ARRAY_ELEMENT                                ~21     'Joris+en+de+Draak'
         31        FETCH_CONSTANT                                   ~22     'NEE'
         32        ADD_ARRAY_ELEMENT                                ~21     ~22
         33        ADD_ARRAY_ELEMENT                                ~18     ~21
   13    34        INIT_ARRAY                                       ~23     '2017-09-04'
         35        ADD_ARRAY_ELEMENT                                ~23     '2017-11-28'
         36        ADD_ARRAY_ELEMENT                                ~23     'De+Tuinman+en+de+Fakir'
         37        FETCH_CONSTANT                                   ~24     'KAN'
         38        ADD_ARRAY_ELEMENT                                ~23     ~24
         39        ADD_ARRAY_ELEMENT                                ~18     ~23
   14    40        INIT_ARRAY                                       ~25     '2017-09-04'
         41        ADD_ARRAY_ELEMENT                                ~25     '2017-09-04'
         42        ADD_ARRAY_ELEMENT                                ~25     'Spookslot'
         43        FETCH_CONSTANT                                   ~26     'JA'
         44        ADD_ARRAY_ELEMENT                                ~25     ~26
         45        ADD_ARRAY_ELEMENT                                ~18     ~25
   15    46        INIT_ARRAY                                       ~27     '2017-09-11'
         47        ADD_ARRAY_ELEMENT                                ~27     '2017-09-22'
         48        ADD_ARRAY_ELEMENT                                ~27     'Fata+Morgana'
         49        FETCH_CONSTANT                                   ~28     'LIEVER_NIET'
         50        ADD_ARRAY_ELEMENT                                ~27     ~28
         51        ADD_ARRAY_ELEMENT                                ~18     ~27
   16    52        INIT_ARRAY                                       ~29     '2017-09-11'
         53        ADD_ARRAY_ELEMENT                                ~29     '2017-12-01'
         54        ADD_ARRAY_ELEMENT                                ~29     'Python'
         55        FETCH_CONSTANT                                   ~30     'KAN'
         56        ADD_ARRAY_ELEMENT                                ~29     ~30
         57        ADD_ARRAY_ELEMENT                                ~18     ~29
   17    58        INIT_ARRAY                                       ~31     '2017-09-11'
         59        ADD_ARRAY_ELEMENT                                ~31     '2017-09-15'
         60        ADD_ARRAY_ELEMENT                                ~31     'De+Oude+Tufferbaan'
         61        FETCH_CONSTANT                                   ~32     'JA'
         62        ADD_ARRAY_ELEMENT                                ~31     ~32
         63        ADD_ARRAY_ELEMENT                                ~18     ~31
   18    64        INIT_ARRAY                                       ~33     '2017-09-25'
         65        ADD_ARRAY_ELEMENT                                ~33     '2017-09-29'
         66        ADD_ARRAY_ELEMENT                                ~33     'Carnaval+Festival'
         67        FETCH_CONSTANT                                   ~34     'KAN'
         68        ADD_ARRAY_ELEMENT                                ~33     ~34
         69        ADD_ARRAY_ELEMENT                                ~18     ~33
   19    70        INIT_ARRAY                                       ~35     '2017-10-02'
         71        ADD_ARRAY_ELEMENT                                ~35     '2017-10-06'
         72        ADD_ARRAY_ELEMENT                                ~35     'Villa+Volta'
         73        FETCH_CONSTANT                                   ~36     'JA'
         74        ADD_ARRAY_ELEMENT                                ~35     ~36
         75        ADD_ARRAY_ELEMENT                                ~18     ~35
   20    76        INIT_ARRAY                                       ~37     '2017-10-02'
         77        ADD_ARRAY_ELEMENT                                ~37     '2017-10-13'
         78        ADD_ARRAY_ELEMENT                                ~37     'Gondoletta'
         79        FETCH_CONSTANT                                   ~38     'JA'
         80        ADD_ARRAY_ELEMENT                                ~37     ~38
         81        ADD_ARRAY_ELEMENT                                ~18     ~37
   21    82        INIT_ARRAY                                       ~39     '2017-10-07'
         83        ADD_ARRAY_ELEMENT                                ~39     '2017-10-13'
         84        ADD_ARRAY_ELEMENT                                ~39     'Aquanura'
         85        FETCH_CONSTANT                                   ~40     'KAN'
         86        ADD_ARRAY_ELEMENT                                ~39     ~40
         87        ADD_ARRAY_ELEMENT                                ~18     ~39
    9    88        ASSIGN                                                   !0, ~18
   24    89        ASSIGN                                                   !1, '2017-09-01'
   25    90        ASSIGN                                                   !2, '2017-12-31'
   27    91        INIT_FCALL                                               'date'
         92        SEND_VAL                                                 'z'
         93        INIT_FCALL                                               'strtotime'
         94        SEND_VAR                                                 !1
         95        DO_ICALL                                         $44     
         96        SEND_VAR                                                 $44
         97        DO_ICALL                                         $45     
         98        ASSIGN                                                   !3, $45
   28    99        INIT_FCALL                                               'date'
        100        SEND_VAL                                                 'z'
        101        INIT_FCALL                                               'strtotime'
        102        SEND_VAR                                                 !2
        103        DO_ICALL                                         $47     
        104        SEND_VAR                                                 $47
        105        DO_ICALL                                         $48     
        106        ASSIGN                                                   !4, $48
   31   107        ASSIGN                                                   !5, <array>
   33   108        ASSIGN                                                   !6, !3
        109        ASSIGN                                                   !7, 0
        110      > JMP                                                      ->196
   34   111    >   INIT_FCALL                                               'date'
        112        SEND_VAL                                                 'Y-m-d'
        113        INIT_FCALL                                               'strtotime'
        114        CONCAT                                           ~53     !1, '+%2B'
        115        CONCAT                                           ~54     ~53, !7
        116        CONCAT                                           ~55     ~54, '+days'
        117        SEND_VAL                                                 ~55
        118        DO_ICALL                                         $56     
        119        SEND_VAR                                                 $56
        120        DO_ICALL                                         $57     
        121        ASSIGN                                                   !8, $57
   35   122        INIT_FCALL                                               'date'
        123        SEND_VAL                                                 'w'
        124        INIT_FCALL                                               'strtotime'
        125        SEND_VAR                                                 !8
        126        DO_ICALL                                         $59     
        127        SEND_VAR                                                 $59
        128        DO_ICALL                                         $60     
        129        ASSIGN                                                   !9, $60
   37   130        INIT_FCALL                                               'in_array'
        131        SEND_VAR                                                 !9
        132        SEND_VAR                                                 !5
        133        DO_ICALL                                         $62     
        134        BOOL_NOT                                         ~63     $62
        135      > JMPZ                                                     ~63, ->137
   38   136    > > JMP                                                      ->194
   41   137    >   INIT_FCALL_BY_NAME                                       'isAnAttractionClosed'
        138        SEND_VAR_EX                                              !6
        139        SEND_VAR_EX                                              !0
        140        DO_FCALL                                      0  $64     
        141        ASSIGN                                           ~65     !10, $64
        142        TYPE_CHECK                                  1018          ~65
        143      > JMPZ                                                     ~66, ->184
   42   144    >   INIT_FCALL_BY_NAME                                       'getHighestAnswer'
        145        SEND_VAR_EX                                              !6
        146        SEND_VAR_EX                                              !0
        147        DO_FCALL                                      0  $67     
        148        ASSIGN                                                   !11, $67
   44   149        INIT_FCALL                                               'date'
        150        SEND_VAL                                                 'd-m-Y'
        151        INIT_FCALL                                               'strtotime'
        152        SEND_VAR                                                 !8
        153        DO_ICALL                                         $69     
        154        SEND_VAR                                                 $69
        155        DO_ICALL                                         $70     
        156        CONCAT                                           ~71     $70, '%3A+'
        157        INIT_FCALL_BY_NAME                                       'getClosedAttractions'
        158        SEND_VAR_EX                                              !6
        159        SEND_VAR_EX                                              !0
        160        DO_FCALL                                      0  $72     
        161        CONCAT                                           ~73     ~71, $72
        162        CONCAT                                           ~74     ~73, '+gesloten.+'
        163        ECHO                                                     ~74
   47   164        FETCH_CONSTANT                                   ~76     'NEE'
        165        IS_EQUAL                                                 !11, ~76
        166      > JMPNZ                                                    ~75, ->174
   50   167    >   FETCH_CONSTANT                                   ~77     'KAN'
        168        IS_EQUAL                                                 !11, ~77
        169      > JMPNZ                                                    ~75, ->176
   53   170    >   FETCH_CONSTANT                                   ~78     'LIEVER_NIET'
        171        IS_EQUAL                                                 !11, ~78
        172      > JMPNZ                                                    ~75, ->178
        173    > > JMP                                                      ->180
   48   174    >   ECHO                                                     'Nee.'
   49   175      > JMP                                                      ->182
   51   176    >   ECHO                                                     'Kan.'
   52   177      > JMP                                                      ->182
   54   178    >   ECHO                                                     'Liever+niet.'
   55   179      > JMP                                                      ->182
   57   180    >   ECHO                                                     'Ja.'
   58   181      > JMP                                                      ->182
   61   182    >   ECHO                                                     '%0A'
   63   183      > JMP                                                      ->194
   67   184    >   INIT_FCALL                                               'date'
        185        SEND_VAL                                                 'd-m-Y'
        186        INIT_FCALL                                               'strtotime'
        187        SEND_VAR                                                 !8
        188        DO_ICALL                                         $79     
        189        SEND_VAR                                                 $79
        190        DO_ICALL                                         $80     
        191        CONCAT                                           ~81     $80, '%3A+Ja'
        192        CONCAT                                           ~82     ~81, '%0A'
        193        ECHO                                                     ~82
   33   194    >   PRE_INC                                                  !6
        195        PRE_INC                                                  !7
        196    >   IS_SMALLER_OR_EQUAL                                      !6, !4
        197      > JMPNZ                                                    ~85, ->111
  118   198    > > RETURN                                                   1

Function isanattractionclosed:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 30
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 30
Branch analysis from position: 4
2 jumps found. (Code = 46) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 26
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
filename:       /in/a0DU1
function name:  isAnAttractionClosed
number of ops:  33
compiled vars:  !0 = $dayOfTheYear, !1 = $closedAttractions, !2 = $closed, !3 = $start, !4 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   75     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   76     2      > FE_RESET_R                                       $5      !1, ->30
          3    > > FE_FETCH_R                                               $5, !2, ->30
   77     4    >   INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'z'
          6        INIT_FCALL                                               'strtotime'
          7        FETCH_DIM_R                                      ~6      !2, 0
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                         $7      
         10        SEND_VAR                                                 $7
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !3, $8
   78    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'z'
         15        INIT_FCALL                                               'strtotime'
         16        FETCH_DIM_R                                      ~10     !2, 1
         17        SEND_VAL                                                 ~10
         18        DO_ICALL                                         $11     
         19        SEND_VAR                                                 $11
         20        DO_ICALL                                         $12     
         21        ASSIGN                                                   !4, $12
   80    22        IS_SMALLER_OR_EQUAL                              ~14     !3, !0
         23      > JMPZ_EX                                          ~14     ~14, ->26
         24    >   IS_SMALLER_OR_EQUAL                              ~15     !0, !4
         25        BOOL                                             ~14     ~15
         26    > > JMPZ                                                     ~14, ->29
   81    27    >   FE_FREE                                                  $5
         28      > RETURN                                                   !2
   76    29    > > JMP                                                      ->3
         30    >   FE_FREE                                                  $5
   85    31      > RETURN                                                   <false>
   86    32*     > RETURN                                                   null

End of function isanattractionclosed

Function gethighestanswer:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 35
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 35
Branch analysis from position: 6
2 jumps found. (Code = 46) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 34
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 34
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 34
Branch analysis from position: 34
Branch analysis from position: 28
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
filename:       /in/a0DU1
function name:  getHighestAnswer
number of ops:  38
compiled vars:  !0 = $dayOfTheYear, !1 = $closedAttractions, !2 = $highest, !3 = $closed, !4 = $start, !5 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   88     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   89     2        FETCH_CONSTANT                                   ~6      'JA'
          3        ASSIGN                                                   !2, ~6
   91     4      > FE_RESET_R                                       $8      !1, ->35
          5    > > FE_FETCH_R                                               $8, !3, ->35
   92     6    >   INIT_FCALL                                               'date'
          7        SEND_VAL                                                 'z'
          8        INIT_FCALL                                               'strtotime'
          9        FETCH_DIM_R                                      ~9      !3, 0
         10        SEND_VAL                                                 ~9
         11        DO_ICALL                                         $10     
         12        SEND_VAR                                                 $10
         13        DO_ICALL                                         $11     
         14        ASSIGN                                                   !4, $11
   93    15        INIT_FCALL                                               'date'
         16        SEND_VAL                                                 'z'
         17        INIT_FCALL                                               'strtotime'
         18        FETCH_DIM_R                                      ~13     !3, 1
         19        SEND_VAL                                                 ~13
         20        DO_ICALL                                         $14     
         21        SEND_VAR                                                 $14
         22        DO_ICALL                                         $15     
         23        ASSIGN                                                   !5, $15
   95    24        IS_SMALLER_OR_EQUAL                              ~17     !4, !0
         25      > JMPZ_EX                                          ~17     ~17, ->28
         26    >   IS_SMALLER_OR_EQUAL                              ~18     !0, !5
         27        BOOL                                             ~17     ~18
         28    > > JMPZ                                                     ~17, ->34
   96    29    >   FETCH_DIM_R                                      ~19     !3, 3
         30        IS_SMALLER                                               !2, ~19
         31      > JMPZ                                                     ~20, ->34
   97    32    >   FETCH_DIM_R                                      ~21     !3, 3
         33        ASSIGN                                                   !2, ~21
   91    34    > > JMP                                                      ->5
         35    >   FE_FREE                                                  $8
  102    36      > RETURN                                                   !2
  103    37*     > RETURN                                                   null

End of function gethighestanswer

Function getclosedattractions:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 32
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 32
Branch analysis from position: 5
2 jumps found. (Code = 46) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 31
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 31
Branch analysis from position: 27
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
filename:       /in/a0DU1
function name:  getClosedAttractions
number of ops:  39
compiled vars:  !0 = $dayOfTheYear, !1 = $closedAttractions, !2 = $attractions, !3 = $closed, !4 = $start, !5 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  105     0  E >   RECV                                             !0      
          1        RECV                                             !1      
  106     2        ASSIGN                                                   !2, ''
  108     3      > FE_RESET_R                                       $7      !1, ->32
          4    > > FE_FETCH_R                                               $7, !3, ->32
  109     5    >   INIT_FCALL                                               'date'
          6        SEND_VAL                                                 'z'
          7        INIT_FCALL                                               'strtotime'
          8        FETCH_DIM_R                                      ~8      !3, 0
          9        SEND_VAL                                                 ~8
         10        DO_ICALL                                         $9      
         11        SEND_VAR                                                 $9
         12        DO_ICALL                                         $10     
         13        ASSIGN                                                   !4, $10
  110    14        INIT_FCALL                                               'date'
         15        SEND_VAL                                                 'z'
         16        INIT_FCALL                                               'strtotime'
         17        FETCH_DIM_R                                      ~12     !3, 1
         18        SEND_VAL                                                 ~12
         19        DO_ICALL                                         $13     
         20        SEND_VAR                                                 $13
         21        DO_ICALL                                         $14     
         22        ASSIGN                                                   !5, $14
  112    23        IS_SMALLER_OR_EQUAL                              ~16     !4, !0
         24      > JMPZ_EX                                          ~16     ~16, ->27
         25    >   IS_SMALLER_OR_EQUAL                              ~17     !0, !5
         26        BOOL                                             ~16     ~17
         27    > > JMPZ                                                     ~16, ->31
  113    28    >   FETCH_DIM_R                                      ~18     !3, 2
         29        CONCAT                                           ~19     ~18, '%2C+'
         30        ASSIGN_OP                                     8          !2, ~19
  108    31    > > JMP                                                      ->4
         32    >   FE_FREE                                                  $7
  117    33        INIT_FCALL                                               'rtrim'
         34        SEND_VAR                                                 !2
         35        SEND_VAL                                                 '%2C+'
         36        DO_ICALL                                         $21     
         37      > RETURN                                                   $21
  118    38*     > RETURN                                                   null

End of function getclosedattractions

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.95 ms | 1429 KiB | 23 Q