3v4l.org

run code in 300+ PHP versions simultaneously
<?php $year = "2008"; $range = "2008-2013"; $regex = "/^(\d{0,4}+(?:-\d{0,4}+)?)$/is"; $matches = array(array()); preg_match($regex, $range, $matches[0]); preg_match($regex, $year, $matches[1]); print_r($matches); ?>

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.60.0030.01718.56
8.3.50.0120.01321.20
8.3.40.0120.00318.67
8.3.30.0030.01020.35
8.3.20.0050.00320.29
8.3.10.0040.00422.05
8.3.00.0040.00422.46
8.2.180.0140.00316.75
8.2.170.0110.00422.96
8.2.160.0070.00722.15
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0030.00521.18
8.2.110.0060.00322.29
8.2.100.0040.00717.97
8.2.90.0060.00319.23
8.2.80.0040.00419.25
8.2.70.0040.00417.50
8.2.60.0030.00517.80
8.2.50.0070.00418.07
8.2.40.0050.00218.09
8.2.30.0000.00718.10
8.2.20.0040.00417.74
8.2.10.0040.00417.75
8.2.00.0080.00017.72
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0090.00026.35
8.1.250.0030.00528.09
8.1.240.0060.00322.05
8.1.230.0090.00319.10
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0040.00417.23
8.1.190.0050.00317.40
8.1.180.0070.00518.10
8.1.170.0000.00818.67
8.1.160.0000.00818.75
8.1.150.0000.00718.83
8.1.140.0040.00417.59
8.1.130.0020.00517.73
8.1.120.0040.00417.46
8.1.110.0000.00817.61
8.1.100.0040.00417.43
8.1.90.0000.00817.52
8.1.80.0030.00417.43
8.1.70.0030.00317.48
8.1.60.0030.00617.68
8.1.50.0000.00817.58
8.1.40.0000.00717.66
8.1.30.0040.00417.71
8.1.20.0040.00417.75
8.1.10.0000.00717.57
8.1.00.0100.00017.61
8.0.300.0050.00218.77
8.0.290.0040.00417.02
8.0.280.0020.00518.42
8.0.270.0000.00717.28
8.0.260.0060.00016.84
8.0.250.0000.00717.02
8.0.240.0040.00417.04
8.0.230.0000.00717.04
8.0.220.0000.00817.00
8.0.210.0000.00717.02
8.0.200.0030.00317.04
8.0.190.0040.00417.04
8.0.180.0040.00416.94
8.0.170.0030.00616.95
8.0.160.0030.00316.88
8.0.150.0040.00416.93
8.0.140.0070.00016.95
8.0.130.0030.00313.41
8.0.120.0000.00916.92
8.0.110.0000.00816.94
8.0.100.0040.00416.84
8.0.90.0040.00416.80
8.0.80.0120.00617.04
8.0.70.0000.00716.80
8.0.60.0090.00016.92
8.0.50.0040.00416.79
8.0.30.0170.00617.19
8.0.20.0140.00917.40
8.0.10.0000.00717.07
8.0.00.0120.00816.86
7.4.330.0040.00415.00
7.4.320.0030.00316.74
7.4.300.0030.00316.68
7.4.290.0030.00616.73
7.4.280.0000.00716.56
7.4.270.0050.00316.54
7.4.260.0030.00613.43
7.4.250.0000.00716.54
7.4.240.0040.00416.74
7.4.230.0050.00316.56
7.4.220.0130.00716.60
7.4.210.0090.00616.70
7.4.200.0000.00716.82
7.4.190.0000.00716.81
7.4.160.0080.00816.83
7.4.150.0030.01417.40
7.4.140.0230.00717.86
7.4.130.0100.00716.55
7.4.120.0100.00916.71
7.4.110.0100.00716.88
7.4.100.0120.00616.49
7.4.90.0090.00916.65
7.4.80.0100.01019.39
7.4.70.0030.01316.77
7.4.60.0110.00616.54
7.4.50.0050.00516.55
7.4.40.0090.00922.77
7.4.30.0090.00916.69
7.4.00.0040.01415.23
7.3.330.0000.00513.19
7.3.320.0000.00613.00
7.3.310.0040.00416.31
7.3.300.0000.00716.41
7.3.290.0100.00716.41
7.3.280.0110.00816.30
7.3.270.0130.00617.40
7.3.260.0210.00316.52
7.3.250.0050.01316.55
7.3.240.0030.01316.32
7.3.230.0100.01416.68
7.3.210.0070.01016.30
7.3.200.0140.00719.39
7.3.190.0060.01116.34
7.3.180.0080.00816.57
7.3.170.0080.00816.34
7.3.160.0130.00416.55
7.3.120.0040.01215.00
7.3.110.0100.00715.03
7.3.100.0060.01215.13
7.3.90.0120.00315.15
7.3.80.0080.00815.00
7.3.70.0070.00715.04
7.3.60.0070.01014.87
7.3.50.0110.00414.95
7.3.40.0070.00714.94
7.3.30.0080.00414.86
7.3.20.0040.01016.95
7.3.10.0030.00916.82
7.3.00.0050.00416.67
7.2.330.0130.00616.69
7.2.320.0190.00016.50
7.2.310.0070.01016.57
7.2.300.0140.00416.61
7.2.290.0110.00416.51
7.2.240.0000.01315.31
7.2.230.0040.01115.29
7.2.220.0120.00315.09
7.2.210.0030.01514.82
7.2.200.0110.00314.70
7.2.190.0040.00815.01
7.2.180.0120.00014.77
7.2.170.0040.01415.15
7.2.160.0030.00715.08
7.2.150.0100.00316.93
7.2.140.0120.00316.83
7.2.130.0040.00816.90
7.2.120.0050.00516.93
7.2.110.0020.01116.96
7.2.100.0080.00616.85
7.2.90.0060.00816.92
7.2.80.0090.00316.74
7.2.70.0050.00916.89
7.2.60.0030.00917.09
7.2.50.0080.00916.95
7.2.40.0050.00817.06
7.2.30.0050.00716.94
7.2.20.0020.01116.86
7.2.10.0080.00416.82
7.2.00.0030.00917.54
7.1.330.0070.00716.02
7.1.320.0080.00015.75
7.1.310.0030.01015.76
7.1.300.0110.00415.99
7.1.290.0000.01615.98
7.1.280.0040.01215.83
7.1.270.0070.00715.97
7.1.260.0090.00615.73
7.1.250.0070.00815.99
7.1.100.0030.00718.11
7.1.70.0030.00617.30
7.1.60.0130.00919.32
7.1.50.0200.00034.94
7.1.00.0070.06022.55
7.0.200.0030.00516.54
7.0.140.0030.07322.10
7.0.70.0100.04021.68
7.0.60.0130.04721.86
7.0.50.0100.08022.01
7.0.40.0000.08720.12
7.0.30.0070.04320.05
7.0.20.0170.06020.13
7.0.10.0000.05320.03
7.0.00.0000.06720.06
5.6.280.0030.07321.06
5.6.220.0030.04720.57
5.6.210.0030.04720.74
5.6.200.0070.08321.07
5.6.190.0070.07721.00
5.6.180.0000.08321.02
5.6.170.0030.06721.00
5.6.160.0030.07021.04
5.6.150.0070.07021.13
5.6.140.0000.05721.00
5.6.130.0000.09321.07
5.6.120.0100.08320.97
5.6.110.0000.09021.02
5.6.100.0000.05321.05
5.6.90.0130.07321.00
5.6.80.0030.05020.41
5.6.70.0030.06020.53
5.6.60.0000.08320.38
5.6.50.0170.07020.40
5.6.40.0070.08320.29
5.6.30.0000.08320.29
5.6.20.0100.08020.36
5.6.10.0000.04320.39
5.6.00.0070.03720.35
5.5.360.0000.04320.39
5.5.350.0070.04320.41
5.5.340.0030.07720.73
5.5.330.0070.08320.77
5.5.320.0170.07320.84
5.5.310.0070.08320.89
5.5.300.0070.08020.91
5.5.290.0100.08020.87
5.5.280.0170.06020.89
5.5.270.0030.07020.80
5.5.260.0070.05020.63
5.5.250.0000.04320.64
5.5.240.0030.08020.30
5.5.230.0070.06720.23
5.5.220.0100.07720.29
5.5.210.0030.08020.26
5.5.200.0100.05020.17
5.5.190.0100.07720.10
5.5.180.0100.08320.11
5.5.160.0070.03720.17
5.5.150.0030.04020.24
5.5.140.0000.04320.20
5.5.130.0030.04020.25
5.5.120.0100.03320.23
5.5.110.0000.04320.07
5.5.100.0000.04320.07
5.5.90.0030.04020.03
5.5.80.0030.03720.06
5.5.70.0030.04720.05
5.5.60.0030.05320.14
5.5.50.0000.04720.13
5.5.40.0000.04019.99
5.5.30.0030.03720.07
5.5.20.0000.03320.14
5.5.10.0000.04020.07
5.5.00.0000.04019.93
5.4.450.0100.06319.36
5.4.440.0100.08319.53
5.4.430.0070.06719.34
5.4.420.0030.08319.28
5.4.410.0070.06719.29
5.4.400.0070.07318.88
5.4.390.0030.07319.21
5.4.380.0000.06319.04
5.4.370.0000.05319.18
5.4.360.0100.06718.94
5.4.350.0030.07718.86
5.4.340.0070.06319.16
5.4.320.0070.04019.03
5.4.310.0000.04019.09
5.4.300.0030.03718.89
5.4.290.0070.04018.91
5.4.280.0070.03719.12
5.4.270.0030.03719.20
5.4.260.0070.03319.04
5.4.250.0030.04018.93
5.4.240.0000.04019.18
5.4.230.0070.07719.02
5.4.220.0030.03719.12
5.4.210.0030.04019.05
5.4.200.0100.05719.03
5.4.190.0000.03318.86
5.4.180.0070.03319.21
5.4.170.0000.04018.84
5.4.160.0070.03719.10
5.4.150.0000.03318.88
5.4.140.0070.02716.22
5.4.130.0070.03016.42
5.4.120.0000.03716.24
5.4.110.0070.02716.46
5.4.100.0000.03016.30
5.4.90.0000.03016.39
5.4.80.0030.02716.38
5.4.70.0030.03316.34
5.4.60.0000.03716.40
5.4.50.0000.03016.31
5.4.40.0030.03316.53
5.4.30.0030.03016.43
5.4.20.0030.03316.36
5.4.10.0000.04716.36
5.4.00.0030.03315.89
5.3.290.0070.03714.61
5.3.280.0030.06014.57
5.3.270.0030.03014.48
5.3.260.0000.04014.61
5.3.250.0000.03314.52
5.3.240.0030.03314.65
5.3.230.0070.05714.54
5.3.220.0000.03714.70
5.3.210.0000.04714.63
5.3.200.0030.03714.54
5.3.190.0000.03714.49
5.3.180.0000.03714.48
5.3.170.0000.03714.57
5.3.160.0030.03314.61
5.3.150.0000.03714.61
5.3.140.0070.04714.67
5.3.130.0000.03314.68
5.3.120.0000.04014.55
5.3.110.0000.03714.53
5.3.100.0030.04014.15
5.3.90.0030.03314.15
5.3.80.0000.03714.02
5.3.70.0030.03014.07
5.3.60.0000.05013.90
5.3.50.0000.04013.93
5.3.40.0030.03014.00
5.3.30.0000.03713.80
5.3.20.0000.03313.80
5.3.10.0000.03713.75
5.3.00.0000.04713.69
5.2.170.0070.03711.18
5.2.160.0000.03311.22
5.2.150.0030.02311.21
5.2.140.0000.03011.04
5.2.130.0070.03011.15
5.2.120.0070.02311.11
5.2.110.0000.03011.21
5.2.100.0000.03011.00
5.2.90.0000.02711.10
5.2.80.0000.05311.02
5.2.70.0070.02711.20
5.2.60.0030.05311.03
5.2.50.0100.06011.13
5.2.40.0030.05010.88
5.2.30.0030.04011.09
5.2.20.0000.03011.07
5.2.10.0070.06010.99
5.2.00.0000.06710.76
5.1.60.0030.02310.76
5.1.50.0000.05710.76
5.1.40.0030.05310.76
5.1.30.0000.03010.76
5.1.20.0000.05710.76
5.1.10.0030.04010.76
5.1.00.0030.05310.76
5.0.50.0000.03310.76
5.0.40.0000.04710.76
5.0.30.0030.06010.76
5.0.20.0000.04310.76
5.0.10.0000.04010.76
5.0.00.0030.04710.76
4.4.90.0000.02710.76
4.4.80.0030.03310.76
4.4.70.0000.04010.76
4.4.60.0000.01710.76
4.4.50.0000.03710.76
4.4.40.0000.05010.76
4.4.30.0000.03710.76
4.4.20.0000.04010.76
4.4.10.0030.02710.76
4.4.00.0000.04010.76
4.3.110.0030.03710.76
4.3.100.0030.03010.76
4.3.90.0000.03710.76
4.3.80.0070.04710.76
4.3.70.0000.03710.76
4.3.60.0000.03010.76
4.3.50.0100.03010.76
4.3.40.0000.05010.76
4.3.30.0000.03710.76
4.3.20.0000.02710.76
4.3.10.0030.03310.76
4.3.00.0030.03310.76

preferences:
46.35 ms | 401 KiB | 5 Q