3v4l.org

run code in 300+ PHP versions simultaneously
<?php $range = "2008-2013"; $year = "2008"; $shite = "-2013"; $regex = "/(\d{4}\-\d{4}|\d{4})/is"; $matches = array(); preg_match($regex, $range, $matches); preg_match($regex, $year, $matches); preg_match($regex, $shite, $matches); 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.0140.00716.50
8.3.50.0090.00821.97
8.3.40.0040.01119.02
8.3.30.0070.00718.84
8.3.20.0050.00320.29
8.3.10.0040.00423.52
8.3.00.0000.00720.84
8.2.180.0100.00718.17
8.2.170.0110.01122.96
8.2.160.0070.00720.39
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0020.00526.16
8.2.120.0040.00419.61
8.2.110.0000.00922.22
8.2.100.0120.00317.87
8.2.90.0030.00519.13
8.2.80.0060.00317.97
8.2.70.0090.00017.63
8.2.60.0000.00718.04
8.2.50.0090.00018.07
8.2.40.0030.00519.89
8.2.30.0040.00418.18
8.2.20.0030.00617.64
8.2.10.0040.00418.09
8.2.00.0030.00519.61
8.1.280.0070.00725.92
8.1.270.0100.00023.92
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0100.00023.73
8.1.230.0090.00319.01
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0040.00418.61
8.1.160.0030.00522.04
8.1.150.0040.00418.70
8.1.140.0080.00017.57
8.1.130.0000.00717.85
8.1.120.0000.00717.47
8.1.110.0040.00417.57
8.1.100.0000.00717.61
8.1.90.0040.00417.43
8.1.80.0050.00317.45
8.1.70.0040.00417.38
8.1.60.0030.00717.56
8.1.50.0060.00317.53
8.1.40.0000.00917.51
8.1.30.0000.00917.75
8.1.20.0070.00017.71
8.1.10.0000.00717.67
8.1.00.0000.00717.57
8.0.300.0020.00518.77
8.0.290.0070.00016.75
8.0.280.0020.00518.48
8.0.270.0000.00817.21
8.0.260.0030.00317.26
8.0.250.0030.00317.04
8.0.240.0040.00417.06
8.0.230.0040.00416.99
8.0.220.0000.00616.93
8.0.210.0030.00316.88
8.0.200.0000.00617.03
8.0.190.0040.00416.92
8.0.180.0000.00716.96
8.0.170.0050.00316.98
8.0.160.0030.00516.97
8.0.150.0040.00416.77
8.0.140.0000.00716.95
8.0.130.0030.00313.33
8.0.120.0050.00316.82
8.0.110.0040.00416.93
8.0.100.0080.00016.84
8.0.90.0070.00016.86
8.0.80.0080.00816.94
8.0.70.0000.00816.96
8.0.60.0040.00416.89
8.0.50.0060.00316.96
8.0.30.0090.01217.08
8.0.20.0110.00817.40
8.0.10.0000.00716.87
8.0.00.0100.00716.83
7.4.330.0000.00615.00
7.4.320.0060.00316.72
7.4.300.0060.00016.54
7.4.290.0030.00316.65
7.4.280.0070.00316.64
7.4.270.0070.00016.69
7.4.260.0030.00316.74
7.4.250.0000.00716.68
7.4.240.0030.00316.67
7.4.230.0030.00316.77
7.4.220.0070.01016.60
7.4.210.0100.00316.63
7.4.200.0000.00716.70
7.4.160.0080.00816.68
7.4.150.0120.00617.40
7.4.140.0120.00517.86
7.4.130.0070.00916.71
7.4.120.0090.01016.59
7.4.110.0120.00416.67
7.4.100.0060.01216.58
7.4.90.0100.00716.57
7.4.80.0080.01719.39
7.4.70.0030.01316.65
7.4.60.0140.00416.62
7.4.50.0030.00316.41
7.4.40.0040.01116.64
7.4.30.0060.01016.71
7.4.00.0120.00614.86
7.3.330.0000.00613.03
7.3.320.0060.00013.14
7.3.310.0070.00016.15
7.3.300.0000.00716.13
7.3.290.0000.01416.33
7.3.280.0100.00816.29
7.3.270.0040.01417.40
7.3.260.0090.00916.52
7.3.250.0150.00616.41
7.3.240.0040.01216.27
7.3.230.0150.00416.71
7.3.210.0100.01316.50
7.3.200.0060.01119.39
7.3.190.0060.01216.46
7.3.180.0110.00716.55
7.3.170.0100.00716.27
7.3.160.0130.01016.34
7.3.120.0100.00615.13
7.2.330.0190.00016.45
7.2.320.0090.01216.61
7.2.310.0030.01316.73
7.2.300.0030.01416.69
7.2.290.0130.00316.42
7.2.60.0090.00616.77
7.2.00.0040.01119.52
7.1.200.0030.01015.80
7.1.100.0100.01018.23
7.1.70.0040.00417.45
7.1.60.0140.01119.70
7.1.50.0070.01517.05
7.1.00.0100.06722.33
7.0.200.0060.00316.82
7.0.140.0030.07322.09
7.0.60.0130.08019.86
7.0.50.0070.04017.88
7.0.40.0030.04320.20
7.0.30.0300.07720.17
7.0.20.0230.05020.09
7.0.10.0330.07020.25
7.0.00.0130.07720.23
5.6.280.0000.07721.06
5.6.210.0030.04020.64
5.6.200.0070.06718.16
5.6.190.0070.06720.51
5.6.180.0070.08020.59
5.6.170.0330.08720.54
5.6.160.0070.06720.61
5.6.150.0000.07018.18
5.6.140.0070.08718.27
5.6.130.0030.06018.18
5.6.120.0200.07320.95
5.6.110.0070.08020.98
5.6.100.0070.07321.09
5.6.90.0030.08321.05
5.6.80.0070.05320.41
5.6.70.4030.03320.23
5.5.350.0070.05720.39
5.5.340.0070.06717.94
5.5.330.0070.04320.37
5.5.320.0030.04320.34
5.5.310.0200.05020.33
5.5.300.0100.04017.98
5.5.290.0000.04317.95
5.5.280.0030.07020.77
5.5.270.0030.06720.67
5.5.260.0130.07320.79
5.5.250.0070.06020.67
5.5.240.0100.07720.18
5.4.450.0430.07019.32
5.4.440.0370.05719.38
5.4.430.0470.06019.30
5.4.420.0470.05319.27
5.4.410.0430.03019.41
5.4.400.0300.04018.95
5.4.390.0330.03319.19
5.4.380.0300.03719.09
5.4.370.0330.03319.07
5.4.360.0370.03719.00
5.4.350.0430.06719.12
5.4.340.0200.05019.24
5.4.320.0330.06719.31
5.4.310.0270.04019.12
5.4.300.0370.07319.21
5.4.290.0230.04719.08
5.4.280.0530.06319.32
5.4.270.0400.03718.98
5.4.260.0500.06018.98
5.4.250.0400.04319.07
5.4.240.0400.03719.11
5.4.230.0470.05719.07
5.4.220.0270.05018.98
5.4.210.0370.07018.94
5.4.200.0500.06319.08
5.4.190.0470.05719.07
5.4.180.0370.06319.05
5.4.170.0370.05018.98
5.4.160.0300.06318.82
5.4.150.0470.03319.19
5.4.140.0400.06716.38
5.4.130.0430.04716.43
5.4.120.0370.06016.37
5.4.110.0400.05716.45
5.4.100.0370.07016.59
5.4.90.0400.06016.45
5.4.80.0400.06716.52
5.4.70.0330.04016.34
5.4.60.0430.06716.49
5.4.50.0500.06316.51
5.4.40.0400.03316.53
5.4.30.0370.05016.53
5.4.20.0500.03316.43
5.4.10.0400.07016.50
5.4.00.0400.03715.84
5.3.290.0400.04014.71
5.3.280.0370.07014.73
5.3.270.0400.05014.52
5.3.260.0470.05314.82
5.3.250.0470.06714.50
5.3.240.0430.06014.60
5.3.230.0400.05014.67
5.3.220.0430.07014.44
5.3.210.0470.04314.46
5.3.200.0470.06014.57
5.3.190.0430.04314.71
5.3.180.0470.06714.64
5.3.170.0330.05714.53
5.3.160.0370.04714.46
5.3.150.0530.05714.63
5.3.140.0470.06314.52
5.3.130.0530.04714.76
5.3.120.0430.06314.69
5.3.110.0330.04714.41
5.3.100.0330.03714.04
5.3.90.0300.04014.07
5.3.80.0430.06314.06
5.3.70.0430.03014.25
5.3.60.0370.03714.05
5.3.50.0330.04313.88
5.3.40.0470.05013.94
5.3.30.0430.04013.96
5.3.20.0400.06713.83
5.3.10.0330.04313.57
5.3.00.0470.05713.73
5.2.170.0400.05012.29
5.2.160.0330.03312.29
5.2.150.0400.04312.29
5.2.140.0300.05712.29
5.2.130.0300.05012.29
5.2.120.0330.02712.29
5.2.110.0370.05312.29
5.2.100.0400.04712.29
5.2.90.0500.04312.29
5.2.80.0270.03312.29
5.2.70.0300.06312.29
5.2.60.0370.03712.29
5.2.50.0470.04712.29
5.2.40.0270.05312.29
5.2.30.0370.04712.29
5.2.20.0330.03712.29
5.2.10.0230.04012.29
5.2.00.0270.03712.29
5.1.60.0300.02712.29
5.1.50.0300.04712.29
5.1.40.0270.04012.29
5.1.30.0330.04312.29
5.1.20.0270.02712.29
5.1.10.0270.02712.29
5.1.00.0270.05012.29
5.0.50.0170.02312.29
5.0.40.0170.02312.29
5.0.30.0200.03312.29
5.0.20.0100.03012.29
5.0.10.0130.02012.29
5.0.00.0170.06012.29
4.4.90.0130.03712.29
4.4.80.0100.03312.29
4.4.70.0170.01712.29
4.4.60.0200.02312.29
4.4.50.0170.02012.29
4.4.40.0230.04312.29
4.4.30.0130.03712.29
4.4.20.0130.02312.29
4.4.10.0200.02712.29
4.4.00.0170.02312.29
4.3.110.0130.02012.29
4.3.100.0100.01712.29
4.3.90.0170.02312.29
4.3.80.0100.02712.29
4.3.70.0170.03012.29
4.3.60.0200.03012.29
4.3.50.0170.03012.29
4.3.40.0130.03012.29
4.3.30.0100.03312.29
4.3.20.0030.02312.29
4.3.10.0130.03312.29
4.3.00.0070.03012.29

preferences:
38.59 ms | 400 KiB | 5 Q