3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($y = 1999; $y<=2100; $y++) { for($m=1; $m<=12; $m++) { echo $y.'-'.sprintf('%02d ', $m), (int) preg_match('/20[0-9]{2}-(0[1-9]|1[0-2])/', $y.'-'.sprintf('%02d', $m)), PHP_EOL; } }

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.3.90.0140.00326.77
8.3.80.0120.00017.97
8.3.70.0090.01916.38
8.3.60.0120.00818.08
8.3.50.0200.00621.20
8.3.40.0140.01018.87
8.3.30.0160.00618.84
8.3.20.0050.00518.95
8.3.10.0030.01020.16
8.3.00.0060.00620.80
8.2.210.0040.00726.77
8.2.200.0070.00718.29
8.2.190.0140.00720.68
8.2.180.0200.00718.54
8.2.170.0190.00922.96
8.2.160.0130.01019.05
8.2.150.0040.00824.18
8.2.140.0070.00424.66
8.2.130.0040.00721.12
8.2.120.0070.00426.35
8.2.110.0100.00320.47
8.2.100.0170.00017.97
8.2.90.0000.01117.97
8.2.80.0000.01118.16
8.2.70.0000.01017.75
8.2.60.0000.01017.78
8.2.50.0030.00718.10
8.2.40.0040.00720.55
8.2.30.0060.00320.64
8.2.20.0030.00717.80
8.2.10.0070.00317.95
8.2.00.0060.00318.09
8.1.290.0090.00430.84
8.1.280.0100.01025.92
8.1.270.0110.00023.81
8.1.260.0040.00728.09
8.1.250.0070.00428.09
8.1.240.0130.00021.96
8.1.230.0120.00423.87
8.1.220.0030.00617.74
8.1.210.0030.00618.91
8.1.200.0040.00717.35
8.1.190.0070.00317.35
8.1.180.0100.00018.10
8.1.170.0060.00318.70
8.1.160.0090.00019.07
8.1.150.0030.01018.86
8.1.140.0070.00319.64
8.1.130.0000.00917.67
8.1.120.0030.00617.54
8.1.110.0030.00717.63
8.1.100.0050.00517.56
8.1.90.0070.00317.54
8.1.80.0090.00017.48
8.1.70.0060.00317.61
8.1.60.0030.00617.70
8.1.50.0040.00717.68
8.1.40.0040.00717.55
8.1.30.0030.00717.84
8.1.20.0060.00317.82
8.1.10.0030.00717.62
8.1.00.0050.00517.63
8.0.300.0070.00320.00
8.0.290.0040.00716.88
8.0.280.0000.01018.52
8.0.270.0030.00617.26
8.0.260.0000.01317.29
8.0.250.0100.00017.12
8.0.240.0000.00917.11
8.0.230.0000.01016.99
8.0.220.0060.00316.91
8.0.210.0040.00417.05
8.0.200.0060.00317.07
8.0.190.0090.00017.07
8.0.180.0070.00317.06
8.0.170.0060.00317.08
8.0.160.0070.00717.09
8.0.150.0030.00616.89
8.0.140.0050.00516.89
8.0.130.0000.00813.52
8.0.120.0100.00017.01
8.0.110.0030.00716.85
8.0.100.0030.00616.86
8.0.90.0060.00316.83
8.0.80.0150.01217.02
8.0.70.0090.00016.89
8.0.60.0040.00417.02
8.0.50.0000.01016.92
8.0.30.0290.00717.29
8.0.20.0210.01717.43
8.0.10.0060.00316.98
8.0.00.0210.01517.12
7.4.330.0030.00315.08
7.4.320.0060.00316.70
7.4.300.0030.00616.77
7.4.290.0030.00616.80
7.4.280.0100.00016.64
7.4.270.0000.00916.77
7.4.260.0060.00316.79
7.4.250.0030.00716.74
7.4.240.0060.00316.73
7.4.230.0000.00916.89
7.4.220.0160.01316.67
7.4.210.0220.00916.83
7.4.200.0000.00916.78
7.4.160.0250.00916.90
7.4.150.0250.00917.40
7.4.140.0250.01417.86
7.4.130.0280.02516.67
7.4.120.0240.01616.72
7.4.110.0270.00416.73
7.4.100.0210.01516.73
7.4.90.0210.01016.66
7.4.80.0270.01019.39
7.4.70.0220.00616.65
7.4.60.0230.02016.75
7.4.50.0080.01116.63
7.4.40.0180.02316.55
7.4.30.0130.02016.68
7.4.00.0090.01315.18
7.3.330.0000.00913.37
7.3.320.0070.00013.08
7.3.310.0040.00416.50
7.3.300.0050.00516.36
7.3.290.0210.01016.44
7.3.280.0170.01416.44
7.3.270.0200.01017.40
7.3.260.0170.02016.46
7.3.250.0220.01916.64
7.3.240.0190.01516.37
7.3.230.0190.01316.45
7.3.210.0290.01016.67
7.3.200.0190.01116.75
7.3.190.0140.01316.71
7.3.180.0120.01816.71
7.3.170.0300.01116.60
7.3.160.0150.01216.46
7.3.120.0100.01714.76
7.3.110.0070.01614.98
7.3.100.0130.00315.27
7.3.90.0100.01315.23
7.3.80.0100.01014.96
7.3.70.0080.01214.81
7.3.60.0140.00715.07
7.3.50.0060.01315.04
7.3.40.0090.00915.02
7.3.30.0040.01114.98
7.3.20.0100.01416.94
7.3.10.0120.00616.93
7.3.00.0060.01016.85
7.2.330.0240.01216.71
7.2.320.0260.00716.61
7.2.310.0170.01316.69
7.2.300.0210.00917.00
7.2.290.0070.02416.73
7.2.250.0070.01815.35
7.2.240.0110.01715.19
7.2.230.0240.00315.32
7.2.220.0100.01415.07
7.2.210.0060.01315.12
7.2.200.0070.02015.40
7.2.190.0060.01615.38
7.2.180.0090.01215.18
7.2.170.0150.00915.41
7.2.00.0070.01119.63
7.1.330.0040.01816.21
7.1.320.0100.01315.80
7.1.310.0220.00616.11
7.1.300.0030.01716.04
7.1.290.0070.01416.02
7.1.280.0040.01915.76
7.1.270.0150.01116.13
7.1.260.0100.00315.89
7.1.100.0430.01216.13
7.1.70.0000.01017.38
7.1.60.0090.00619.27
7.1.00.0030.07722.55
7.0.200.0060.00916.65
7.0.60.0330.06719.89
7.0.50.0230.07720.33
7.0.40.0370.07320.32
7.0.30.0270.05720.42
7.0.20.0230.06720.42
7.0.10.0330.05720.34
7.0.00.0330.06320.42
5.6.280.0130.07320.91
5.6.210.0000.05020.50
5.6.200.0100.07021.02
5.6.190.0370.07321.17
5.6.180.0130.07721.12
5.6.170.0270.08721.04
5.6.160.0470.07321.13
5.6.150.0200.08321.04
5.6.140.0230.05721.15
5.6.130.0330.08321.10
5.6.120.0270.06020.99
5.6.110.0230.06321.14
5.6.100.0230.07021.14
5.6.90.0230.08021.03
5.6.80.0200.07320.52
5.6.70.0130.06320.51
5.6.60.0230.09020.54
5.6.50.0230.08020.47
5.6.40.0230.07020.51
5.6.30.0230.07020.44
5.6.20.0370.05720.44
5.6.10.0300.06720.45
5.6.00.0300.05020.43
5.5.350.0300.06020.52
5.5.340.0130.06020.89
5.5.330.0170.08020.80
5.5.320.0270.07720.84
5.5.310.0300.04720.88
5.5.300.0130.10020.84
5.5.290.0200.06721.00
5.5.280.0370.06720.88
5.5.270.0200.09320.82
5.5.260.0200.06021.02
5.5.250.0230.05720.68
5.5.240.0430.06020.23
5.5.230.0330.04720.16
5.5.220.0430.09020.20
5.5.210.0200.08020.39
5.5.200.0100.08020.18
5.5.190.0300.07020.14
5.5.180.0100.07320.26
5.5.160.0170.06020.37
5.5.150.0370.06020.28
5.5.140.0330.06320.18
5.5.130.0270.06720.20
5.5.120.0400.05020.20
5.5.110.0370.06720.23
5.5.100.0270.07020.25
5.5.90.0170.05720.18
5.5.80.0100.06320.12
5.5.70.0270.05320.16
5.5.60.0200.07320.14
5.5.50.0130.05719.92
5.5.40.0330.04320.13
5.5.30.0200.07020.02
5.5.20.0300.05320.09
5.5.10.0300.06320.09
5.5.00.0170.05720.13

preferences:
30.88 ms | 401 KiB | 5 Q