3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 1; $i <= 60; ++$i) { $result = []; $years = intdiv($i, 12); if ($years) { $result[] = $years . ' year' . ($years !== 1 ? 's' : ''); } $months = $i % 12; if ($months) { $result[] = $months . ' month' . ($months !== 1 ? 's' : ''); } echo implode(', ', $result) . "\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.10.0080.01016.46
8.5.00.0130.00919.91
8.4.150.0020.00014.05
8.4.140.0140.00717.75
8.4.130.0080.00917.86
8.4.120.0130.00721.94
8.4.110.0100.01018.63
8.4.100.0100.01217.84
8.4.90.0140.00622.26
8.4.80.0040.00420.44
8.4.70.0130.00719.12
8.4.60.0050.00422.02
8.4.50.0120.00817.91
8.4.40.0140.00718.72
8.4.30.0090.00920.54
8.4.20.0030.00517.65
8.4.10.0040.00419.63
8.3.280.0030.00014.05
8.3.270.0120.00816.91
8.3.260.0090.01016.64
8.3.250.0120.00818.82
8.3.240.0120.00416.68
8.3.230.0130.00616.48
8.3.220.0020.00620.76
8.3.210.0120.00716.65
8.3.200.0030.00616.52
8.3.190.0090.01018.97
8.3.180.0110.00916.53
8.3.170.0140.00418.88
8.3.160.0100.01018.48
8.3.150.0130.00720.89
8.3.140.0080.00016.69
8.3.130.0030.00716.66
8.3.120.0160.00318.99
8.3.110.0060.00316.50
8.3.100.0100.01016.82
8.3.90.0170.00326.77
8.3.80.0040.00417.97
8.3.70.0070.00718.43
8.3.60.0110.00416.50
8.3.50.0140.00716.79
8.3.40.0110.00422.00
8.3.30.0030.01321.86
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.290.0110.00717.07
8.2.280.0100.01019.23
8.2.270.0120.00317.13
8.2.260.0090.00918.35
8.2.250.0040.00418.13
8.2.240.0030.00616.83
8.2.230.0050.00320.94
8.2.220.0030.00624.06
8.2.210.0110.00026.77
8.2.200.0030.00616.25
8.2.190.0140.00718.54
8.2.180.0110.00616.50
8.2.170.0040.01218.94
8.2.160.0070.01022.96
8.2.150.0070.00325.66
8.2.140.0000.01524.66
8.2.130.0050.00326.16
8.2.120.0040.00419.95
8.2.110.0200.00021.96
8.2.100.0140.00721.03
8.2.90.0190.01318.57
8.2.80.0200.00318.83
8.2.70.0280.00018.93
8.2.60.0270.00718.88
8.2.50.0220.00618.62
8.2.40.0170.00718.78
8.2.30.0180.00018.84
8.2.20.0200.00318.83
8.2.10.0180.00619.07
8.2.00.0180.00619.09
8.1.330.0150.00516.23
8.1.320.0130.00721.79
8.1.310.0000.00816.71
8.1.300.0060.00317.86
8.1.290.0060.00330.84
8.1.280.0140.00425.92
8.1.270.0000.00723.99
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0170.00718.57
8.1.230.0190.00618.63
8.1.220.0140.00718.54
8.1.210.0160.00319.79
8.1.200.0120.01218.36
8.1.190.0120.00018.41
8.1.180.0220.00318.29
8.1.170.0140.00018.64
8.1.160.0040.00818.68
8.1.150.0060.00620.55
8.1.140.0090.00418.50
8.1.130.0090.00518.55
8.1.120.0120.00318.68
8.1.110.0090.00918.54
8.1.100.0140.00618.40
8.1.90.0050.01018.54
8.1.80.0110.00318.66
8.1.70.0130.00318.64
8.1.60.0110.00718.56
8.1.50.0150.00518.41
8.1.40.0070.00718.43
8.1.30.0080.00418.98
8.1.20.0120.00418.71
8.1.10.0040.00918.73
8.1.00.0110.00218.61
8.0.300.0150.00417.82
8.0.290.0160.00017.82
8.0.280.0090.00417.77
8.0.270.0140.00017.77
8.0.260.0120.00317.90
8.0.250.0080.00817.95
8.0.240.0050.01017.84
8.0.230.0080.00418.19
8.0.220.0150.00017.96
8.0.210.0140.00017.84
8.0.200.0110.00417.86
8.0.190.0120.00317.93
8.0.180.0080.00617.96
8.0.170.0110.00317.88
8.0.160.0130.00317.80
8.0.150.0120.00417.86
8.0.140.0120.00417.89
8.0.130.0080.00418.21
8.0.120.0120.00317.80
8.0.110.0100.00518.00
8.0.100.0110.00417.89
8.0.90.0150.00017.74
8.0.80.0120.00317.88
8.0.70.0090.00517.86
8.0.60.0150.00017.82
8.0.50.0140.00017.74
8.0.30.0140.00017.86
8.0.20.0110.00318.06
8.0.10.0110.00417.99

preferences:
29.89 ms | 403 KiB | 5 Q