3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* 19. - 21. Februar 2015 11. - 13. Februar 2016 02. - 04. März 2017 15. - 17. Februar 2018 07. - 09. März 2019 27. - 29. Februar 2020 18. - 20. Februar 2021 03. - 05. März 2022 23. - 25. Februar 2023 15. - 17. Februar 2024 */ for($i = 2015; $i <= 2024; $i++) { $time = easter_date($i) - (46 * 86400); $when = 'Tuesday of week ' . date('W', $time) . ' ' . $i; echo $when . PHP_EOL; echo date('l, Y-m-d', strtotime($when)) . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 2
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 2
Branch analysis from position: 29
Branch analysis from position: 2
filename:       /in/rEsWu
function name:  (null)
number of ops:  30
compiled vars:  !0 = $i, !1 = $time, !2 = $when
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   ASSIGN                                                   !0, 2015
          1      > JMP                                                      ->27
   17     2    >   INIT_FCALL_BY_NAME                                       'easter_date'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0  $4      
          5        SUB                                              ~5      $4, 3974400
          6        ASSIGN                                                   !1, ~5
   18     7        INIT_FCALL                                               'date'
          8        SEND_VAL                                                 'W'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $7      
         11        CONCAT                                           ~8      'Tuesday+of+week+', $7
         12        CONCAT                                           ~9      ~8, '+'
         13        CONCAT                                           ~10     ~9, !0
         14        ASSIGN                                                   !2, ~10
   19    15        CONCAT                                           ~12     !2, '%0A'
         16        ECHO                                                     ~12
   20    17        INIT_FCALL                                               'date'
         18        SEND_VAL                                                 'l%2C+Y-m-d'
         19        INIT_FCALL                                               'strtotime'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                         $13     
         22        SEND_VAR                                                 $13
         23        DO_ICALL                                         $14     
         24        CONCAT                                           ~15     $14, '%0A'
         25        ECHO                                                     ~15
   16    26        PRE_INC                                                  !0
         27    >   IS_SMALLER_OR_EQUAL                                      !0, 2024
         28      > JMPNZ                                                    ~17, ->2
   21    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.42 ms | 1012 KiB | 15 Q