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; }
Output for 7.2.29 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.28, 8.4.1 - 8.4.14, 8.5.0 - 8.5.1
Fatal error: Uncaught Error: Call to undefined function easter_date() in /in/rEsWu:17 Stack trace: #0 {main} thrown in /in/rEsWu on line 17
Process exited with code 255.
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.
Output for 4.4.1 - 4.4.9, 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0
Tuesday of week 08 2015 Thursday, 1970-01-01 Tuesday of week 06 2016 Thursday, 1970-01-01 Tuesday of week 09 2017 Thursday, 1970-01-01 Tuesday of week 07 2018 Thursday, 1970-01-01 Tuesday of week 10 2019 Thursday, 1970-01-01 Tuesday of week 09 2020 Thursday, 1970-01-01 Tuesday of week 07 2021 Thursday, 1970-01-01 Tuesday of week 09 2022 Thursday, 1970-01-01 Tuesday of week 08 2023 Thursday, 1970-01-01 Tuesday of week 07 2024 Thursday, 1970-01-01
Output for 4.3.10 - 4.3.11, 4.4.0, 5.0.2 - 5.0.4
Tuesday of week 8 2015 Thursday, 1970-01-01 Tuesday of week 6 2016 Thursday, 1970-01-01 Tuesday of week 9 2017 Thursday, 1970-01-01 Tuesday of week 7 2018 Thursday, 1970-01-01 Tuesday of week 10 2019 Thursday, 1970-01-01 Tuesday of week 9 2020 Thursday, 1970-01-01 Tuesday of week 7 2021 Thursday, 1970-01-01 Tuesday of week 9 2022 Thursday, 1970-01-01 Tuesday of week 8 2023 Thursday, 1970-01-01 Tuesday of week 7 2024 Thursday, 1970-01-01
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rEsWu on line 19 Tuesday of week 8 2015PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rEsWu on line 20 Thursday, 1970-01-01PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rEsWu on line 19 Tuesday of week 6 2016PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rEsWu on line 20 Thursday, 1970-01-01PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rEsWu on line 19 Tuesday of week 9 2017PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rEsWu on line 20 Thursday, 1970-01-01PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rEsWu on line 19 Tuesday of week 7 2018PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rEsWu on line 20 Thursday, 1970-01-01PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rEsWu on line 19 Tuesday of week 10 2019PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rEsWu on line 20 Thursday, 1970-01-01PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rEsWu on line 19 Tuesday of week 9 2020PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rEsWu on line 20 Thursday, 1970-01-01PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rEsWu on line 19 Tuesday of week 7 2021PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rEsWu on line 20 Thursday, 1970-01-01PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rEsWu on line 19 Tuesday of week 9 2022PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rEsWu on line 20 Thursday, 1970-01-01PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rEsWu on line 19 Tuesday of week 8 2023PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rEsWu on line 20 Thursday, 1970-01-01PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rEsWu on line 19 Tuesday of week 7 2024PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rEsWu on line 20 Thursday, 1970-01-01PHP_EOL

preferences:
222.06 ms | 422 KiB | 5 Q