3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 1; $i <= 60; ++$i) { $years = intdiv($i, 12); $months = $i % 12; printf( "%d year%s, %d month%s\n", $years, $years !== 1 ? 's' : '', $months, $months !== 1 ? 's' : '' ); }

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.01116.34
8.5.00.0120.01019.90
8.4.160.0100.01323.75
8.4.150.0020.00014.05
8.4.140.0100.01117.63
8.4.130.0140.01017.69
8.4.120.0130.00820.65
8.4.110.0100.01022.48
8.4.100.0100.01017.61
8.4.90.0140.00619.47
8.4.80.0120.00817.61
8.4.70.0120.01017.73
8.4.60.0110.01018.54
8.4.50.0130.00817.51
8.4.40.0000.00918.48
8.4.30.0060.00320.45
8.4.20.0030.00617.78
8.4.10.0100.01019.27
8.3.280.0020.00114.05
8.3.270.0110.00916.43
8.3.260.0120.00616.66
8.3.250.0060.00219.07
8.3.240.0150.00716.35
8.3.230.0110.00816.54
8.3.220.0070.00217.36
8.3.210.0100.01016.55
8.3.200.0060.00316.63
8.3.190.0050.00318.85
8.3.180.0110.01016.49
8.3.170.0070.01118.83
8.3.160.0040.01118.32
8.3.150.0080.00020.75
8.3.140.0100.00718.94
8.3.130.0030.00618.55
8.3.120.0060.00320.71
8.3.110.0060.00320.94
8.3.100.0130.00624.06
8.3.90.0050.00326.77
8.3.80.0030.00618.56
8.3.70.0040.01416.38
8.3.60.0130.00718.18
8.3.50.0170.00316.55
8.3.40.0100.00322.23
8.3.30.0100.00321.78
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.290.0110.00720.25
8.2.280.0060.00818.29
8.2.270.0040.00417.01
8.2.260.0120.00416.33
8.2.250.0070.00016.49
8.2.240.0090.00918.59
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0030.00618.16
8.2.190.0040.01216.58
8.2.180.0110.01116.32
8.2.170.0160.00018.91
8.2.160.0070.00722.96
8.2.150.0040.00725.66
8.2.140.0120.00324.66
8.2.130.0070.00026.16
8.2.120.0000.00819.71
8.2.110.0140.00722.24
8.2.100.0160.00621.11
8.2.90.0230.00718.87
8.2.80.0130.01018.59
8.2.70.0340.00318.64
8.2.60.0160.01218.65
8.2.50.0290.00618.62
8.2.40.0200.00418.63
8.2.30.0160.00618.74
8.2.20.0200.00418.64
8.2.10.0130.01318.89
8.2.00.0150.01118.92
8.1.330.0050.00318.28
8.1.320.0090.00715.92
8.1.310.0000.00816.21
8.1.300.0070.00315.84
8.1.290.0060.00330.84
8.1.280.0000.01425.92
8.1.270.0000.00723.99
8.1.260.0040.00426.35
8.1.250.0070.00728.09
8.1.240.0120.01218.52
8.1.230.0110.00418.37
8.1.220.0140.01018.50
8.1.210.0230.00019.76
8.1.200.0140.00018.30
8.1.190.0000.01218.30
8.1.180.0120.00218.38
8.1.170.0100.00318.43
8.1.160.0100.00218.69
8.1.150.0120.00020.30
8.1.140.0140.00018.49
8.1.130.0110.00318.49
8.1.120.0110.00318.42
8.1.110.0050.00818.53
8.1.100.0060.00918.34
8.1.90.0030.01018.61
8.1.80.0100.00318.50
8.1.70.0060.00618.64
8.1.60.0160.00018.54
8.1.50.0100.00618.55
8.1.40.0060.00818.82
8.1.30.0040.00918.67
8.1.20.0130.00318.43
8.1.10.0080.00418.51
8.1.00.0090.00318.61
8.0.300.0080.00817.81
8.0.290.0140.00317.66
8.0.280.0090.00517.90
8.0.270.0120.00317.82
8.0.260.0160.00017.88
8.0.250.0120.00317.96
8.0.240.0030.01017.96
8.0.230.0060.00618.24
8.0.220.0110.00417.80
8.0.210.0050.00917.82
8.0.200.0060.00917.82
8.0.190.0150.00017.92
8.0.180.0080.00817.88
8.0.170.0120.00017.96
8.0.160.0120.00317.87
8.0.150.0120.00417.79
8.0.140.0040.01117.79
8.0.130.0080.00418.24
8.0.120.0100.00617.83
8.0.110.0140.00018.00
8.0.100.0090.00617.75
8.0.90.0120.00317.70
8.0.80.0160.00017.88
8.0.70.0050.00917.88
8.0.60.0140.00017.82
8.0.50.0120.00317.88
8.0.30.0090.00617.91
8.0.20.0110.00417.88
8.0.10.0090.00517.98

preferences:
40.55 ms | 403 KiB | 5 Q