3v4l.org

run code in 300+ PHP versions simultaneously
<?php $post_search = array ( 2019 => array ( 05 => array ( 12 => array ( 0 => 'default.md' ), ), 12 => array ( 22 => array ( 0 => 'default.md' ), ), ), 2020 => array ( 05 => array ( 19 => array ( 0 => 'default.md' ), ), ) ); foreach ($post_search as $year => $months) { foreach ($months as $month => $days) { foreach ($days as $day => $files) { foreach ($files as $file) { echo "File $file:\nYear: $year\nMonth: $month\nDay: $day\n"; } } } }
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.4, 8.3.6 - 8.3.7
File default.md: Year: 2019 Month: 5 Day: 12 File default.md: Year: 2019 Month: 12 Day: 22 File default.md: Year: 2020 Month: 5 Day: 19
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 File default.md: Year: 2019 Month: 5 Day: 12 File default.md: Year: 2019 Month: 12 Day: 22 File default.md: Year: 2020 Month: 5 Day: 19

preferences:
142.59 ms | 402 KiB | 184 Q