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"; } } } }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.30.0080.00919.23
8.5.20.0080.00920.36
8.5.10.0080.01016.54
8.5.00.0130.00919.59
8.4.180.0160.00719.69
8.4.170.0150.00320.45
8.4.160.0110.01022.25
8.4.150.0070.00516.80
8.4.140.0100.01117.73
8.4.130.0020.00717.68
8.4.120.0130.00724.19
8.4.110.0040.00521.85
8.4.100.0040.00618.86
8.4.90.0140.00618.98
8.4.80.0100.00920.52
8.4.70.0060.00217.91
8.4.60.0130.00818.81
8.4.50.0130.00618.58
8.4.40.0000.00817.62
8.4.30.0100.01018.65
8.4.20.0030.01619.55
8.4.10.0030.01622.26
8.3.300.0110.00920.72
8.3.290.0130.00720.82
8.3.280.0120.01118.30
8.3.270.0100.00916.54
8.3.260.0110.00816.96
8.3.250.0100.00819.04
8.3.240.0120.00519.10
8.3.230.0130.00616.52
8.3.220.0150.00318.84
8.3.210.0140.00416.85
8.3.200.0070.00216.65
8.3.190.0130.00617.41
8.3.180.0110.00718.91
8.3.170.0040.00420.72
8.3.160.0090.00918.75
8.3.150.0000.00818.60
8.3.140.0110.00717.06
8.3.130.0140.00418.52
8.3.120.0060.00320.53
8.3.110.0080.00020.94
8.3.100.0150.00024.06
8.3.90.0100.01026.77
8.3.80.0030.00617.97
8.3.70.0110.00418.14
8.3.60.0140.00716.50
8.3.50.0070.01323.56
8.3.40.0070.00719.13
8.3.30.0070.00718.76
8.3.20.0000.00724.18
8.3.10.0070.00024.66
8.3.00.0040.00426.16
8.2.300.0110.00922.25
8.2.290.0100.00620.56
8.2.280.0050.00818.17
8.2.270.0120.00418.99
8.2.260.0070.01118.18
8.2.250.0000.00818.84
8.2.240.0060.00317.06
8.2.230.0000.00822.58
8.2.220.0080.00037.54
8.2.210.0050.00326.77
8.2.200.0100.00016.50
8.2.190.0160.00618.41
8.2.180.0170.00325.92
8.2.170.0060.00922.96
8.2.160.0030.01022.96
8.2.150.0080.00025.66
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0040.00419.36
8.2.110.0060.00320.83
8.2.100.0120.00017.72
8.2.90.0060.00317.91
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0000.00917.93
8.2.50.0030.00518.07
8.2.40.0040.00419.98
8.2.30.0080.00018.04
8.2.20.0070.00018.11
8.2.10.0030.00619.36
8.2.00.0030.00319.35
8.1.340.0140.00617.63
8.1.330.0130.00821.98
8.1.320.0130.00616.07
8.1.310.0140.00318.58
8.1.300.0100.00018.37
8.1.290.0090.00030.84
8.1.280.0100.01025.92
8.1.270.0080.00021.99
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00322.55
8.1.230.0040.00820.92
8.1.220.0000.00817.78
8.1.210.0040.00418.95
8.1.200.0090.00417.25
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0000.00818.59
8.1.160.0000.00718.89
8.1.150.0030.00518.74
8.1.140.0000.00718.80
8.1.130.0000.00720.13
8.1.120.0080.00017.36
8.1.110.0000.00717.50
8.1.100.0070.00017.47
8.1.90.0000.00817.45
8.1.80.0060.00317.47
8.1.70.0030.00317.29
8.1.60.0080.00017.55
8.1.50.0000.00817.53
8.1.40.0000.00817.54
8.1.30.0030.00517.61
8.1.20.0030.00517.48
8.1.10.0050.00317.54
8.1.00.0000.00717.48
8.0.300.0080.00020.03
8.0.290.0060.00316.75
8.0.280.0000.00818.48
8.0.270.0100.00017.93
8.0.260.0070.00018.36
8.0.250.0000.00616.86
8.0.240.0000.00716.98
8.0.230.0030.00416.95
8.0.220.0060.00316.86
8.0.210.0000.00716.92
8.0.200.0030.00316.87
8.0.190.0000.00716.85
8.0.180.0080.00016.86
8.0.170.0120.00016.78
8.0.160.0040.00416.93
8.0.150.0000.00716.90
8.0.140.0030.00516.86
8.0.130.0050.00013.32
8.0.120.0000.00716.89
8.0.110.0050.00316.71
8.0.100.0030.00316.88
8.0.90.0030.00616.78
8.0.80.0110.00716.82
8.0.70.0030.00516.74
8.0.60.0030.00516.95
8.0.50.0040.00416.93
8.0.30.0100.00716.91
8.0.20.0060.01217.32
8.0.10.0070.00017.00
8.0.00.0090.01216.50
7.4.330.0020.00215.55
7.4.320.0030.00316.61
7.4.300.0030.00316.48
7.4.290.0040.00416.65
7.4.280.0040.00416.50
7.4.270.0030.00316.57
7.4.260.0000.00513.23
7.4.250.0000.00716.43
7.4.240.0030.00416.52
7.4.230.0040.00416.58
7.4.220.0040.00316.61
7.4.210.0100.00516.59
7.4.200.0030.00416.30
7.4.130.0060.01216.42
7.4.120.0140.00716.55
7.4.110.0030.01416.50
7.4.100.0150.00916.45
7.4.90.0030.01316.40
7.4.80.0130.00919.39
7.4.70.0110.01116.54
7.4.60.0090.00816.35
7.4.50.0000.01516.27
7.4.40.0080.00816.46
7.4.30.0110.00616.47
7.4.20.0130.00316.55
7.4.10.0130.00316.42
7.4.00.0070.01016.62
7.3.330.0070.00016.19
7.3.320.0030.00313.24
7.3.310.0000.00716.39
7.3.300.0040.00416.27
7.3.290.0070.00716.34
7.3.280.0130.00316.37
7.3.260.0030.02016.50
7.3.240.0080.00916.33
7.3.230.0110.01016.14
7.3.210.0070.01316.46
7.3.200.0100.00716.18
7.3.190.0150.00016.52
7.3.180.0100.00516.34
7.3.170.0110.00416.40
7.3.160.0040.01116.62
7.3.150.0080.00816.45
7.3.140.0090.00616.42
7.3.130.0100.00616.24
7.3.120.0100.00516.46
7.3.110.0080.00816.13
7.3.100.0100.00616.28
7.3.90.0070.01016.47
7.3.80.0090.00616.41
7.3.70.0100.00716.41
7.3.60.0060.01316.21
7.3.50.0090.00616.27
7.3.40.0080.01116.30
7.3.30.0080.01416.44
7.3.20.0100.01016.30
7.3.10.0160.00016.29
7.3.00.0130.00616.52
7.2.330.0130.00716.56
7.2.320.0070.01016.72
7.2.310.0130.00716.50
7.2.300.0120.00616.64
7.2.290.0080.00816.47
7.2.280.0030.01316.65
7.2.270.0100.00716.27
7.2.260.0130.00316.69
7.2.250.0070.01016.58
7.2.240.0090.00916.53
7.2.230.0080.00816.44
7.2.220.0160.00316.50
7.2.210.0120.00316.31
7.2.200.0040.01116.58
7.2.190.0100.01016.61
7.2.180.0040.01516.54
7.2.170.0070.01016.39
7.2.160.0060.00916.38
7.2.150.0090.00816.39
7.2.140.0030.01716.48
7.2.130.0620.00616.75
7.2.120.0100.00916.45
7.2.110.0100.01016.35
7.2.100.0060.01416.34
7.2.90.0090.01116.50
7.2.80.0130.00616.36
7.2.70.0130.00616.46
7.2.60.0090.01216.53
7.2.50.0120.01216.25
7.2.40.0170.00316.39
7.2.30.0100.00916.47
7.2.20.0170.00716.48
7.2.10.0130.00816.46
7.2.00.0110.01116.55

preferences:
61.61 ms | 1524 KiB | 5 Q