3v4l.org

run code in 300+ PHP versions simultaneously
<?php $range = "2008-2013"; $year = "2008"; $shite = "-2013"; $regex = "/(\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.40.0110.00718.69
8.3.30.0030.01020.21
8.3.20.0080.00020.33
8.3.10.0040.00422.09
8.3.00.0000.00822.39
8.2.170.0100.00722.96
8.2.160.0100.00322.30
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00421.07
8.2.110.0030.00622.05
8.2.100.0090.00317.91
8.2.90.0050.00319.13
8.2.80.0030.00619.39
8.2.70.0030.00617.50
8.2.60.0050.00317.91
8.2.50.0040.00418.07
8.2.40.0080.00017.93
8.2.30.0050.00218.07
8.2.20.0040.00417.74
8.2.10.0030.00617.88
8.2.00.0030.00617.75
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0090.00023.84
8.1.230.0080.00319.14
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0000.00817.41
8.1.180.0070.00319.14
8.1.170.0030.00518.52
8.1.160.0070.00018.77
8.1.150.0050.00318.63
8.1.140.0060.00317.49
8.1.130.0050.00317.88
8.1.120.0000.00717.46
8.1.110.0040.00417.46
8.1.100.0000.00717.54
8.1.90.0000.00717.43
8.1.80.0040.00417.54
8.1.70.0030.00317.45
8.1.60.0060.00317.55
8.1.50.0050.00317.50
8.1.40.0030.00617.63
8.1.30.0030.00517.70
8.1.20.0000.00817.73
8.1.10.0040.00417.59
8.1.00.0040.00417.43
8.0.300.0040.00418.77
8.0.290.0000.00717.04
8.0.280.0030.00518.44
8.0.270.0040.00417.13
8.0.260.0030.00316.82
8.0.250.0070.00016.93
8.0.240.0040.00417.09
8.0.230.0000.00716.87
8.0.220.0020.00516.91
8.0.210.0040.00416.81
8.0.200.0000.00717.07
8.0.190.0040.00417.07
8.0.180.0040.00417.01
8.0.170.0030.00516.96
8.0.160.0030.00317.02
8.0.150.0000.00716.93
8.0.140.0040.00416.82
8.0.130.0030.00313.41
8.0.120.0040.00416.85
8.0.110.0000.00716.99
8.0.100.0000.00816.84
8.0.90.0040.00317.03
8.0.80.0120.00316.98
8.0.70.0040.00417.04
8.0.60.0070.00016.96
8.0.50.0050.00217.03
8.0.30.0080.01217.21
8.0.20.0100.00817.40
8.0.10.0000.00717.15
8.0.00.0090.00916.71
7.4.330.0030.00315.00
7.4.320.0060.00016.54
7.4.300.0030.00316.70
7.4.290.0030.00616.73
7.4.280.0030.00316.72
7.4.270.0000.00716.73
7.4.260.0030.00313.48
7.4.250.0070.00016.61
7.4.240.0030.00316.72
7.4.230.0070.00016.63
7.4.220.0040.01416.81
7.4.210.0040.01216.72
7.4.200.0000.00716.73
7.4.190.0070.00016.50
7.4.160.0030.01416.58
7.4.150.0100.00717.40
7.4.140.0150.00917.86
7.4.130.0070.01316.76
7.4.120.0100.00816.62
7.4.110.0070.01016.55
7.4.100.0090.00916.44
7.4.90.0120.00616.52
7.4.80.0120.00919.39
7.4.70.0130.00316.59
7.4.60.0060.01216.51
7.4.50.0040.00416.70
7.4.40.0070.01122.77
7.4.30.0120.00916.82
7.4.00.0080.00615.00
7.3.330.0060.00013.13
7.3.320.0030.00213.17
7.3.310.0000.00716.22
7.3.300.0070.00016.14
7.3.290.0100.01016.39
7.3.280.0090.00816.29
7.3.270.0150.00317.40
7.3.260.0070.01516.28
7.3.250.0090.01016.48
7.3.240.0130.00316.69
7.3.230.0090.01216.54
7.3.210.0070.01016.43
7.3.200.0100.00719.39
7.3.190.0070.01116.39
7.3.180.0060.00916.34
7.3.170.0080.00816.29
7.3.160.0040.01316.49
7.3.120.0060.01014.79
7.3.110.0130.00314.62
7.3.100.0070.00714.92
7.3.90.0070.00414.70
7.3.80.0090.00614.76
7.3.70.0030.00914.88
7.3.60.0000.01514.85
7.3.50.0120.00314.63
7.3.40.0100.00714.93
7.3.30.0080.00514.84
7.3.20.0100.00316.77
7.3.10.0130.00816.60
7.3.00.0090.01116.05
7.2.330.0150.00316.41
7.2.320.0160.00316.57
7.2.310.0070.01516.50
7.2.300.0130.00316.61
7.2.290.0180.00316.59
7.2.250.0150.00315.03
7.2.240.0110.00814.90
7.2.230.0040.01115.09
7.2.220.0070.00714.85
7.2.210.0060.01115.10
7.2.200.0030.00915.02
7.2.190.0110.00415.11
7.2.180.0090.00615.09
7.2.170.0090.00914.94
7.2.160.0030.01215.12
7.2.150.0090.00916.95
7.2.140.0090.00616.96
7.2.130.0040.01416.70
7.2.120.0050.01216.42
7.2.110.0080.00716.71
7.2.100.0080.00916.92
7.2.90.0070.01116.64
7.2.80.0020.01116.66
7.2.70.0140.00716.70
7.2.60.0090.00716.73
7.2.50.0080.00716.71
7.2.40.0110.00816.61
7.2.30.0090.01016.72
7.2.20.0020.01616.53
7.2.10.0110.00516.89
7.2.00.0100.00416.80
7.1.330.0070.00715.96
7.1.320.0140.00316.02
7.1.310.0060.00615.84
7.1.300.0030.01015.86
7.1.290.0100.00315.75
7.1.280.0070.00716.01
7.1.270.0030.00915.84
7.1.260.0040.00716.02
7.1.250.0080.00615.51
7.1.240.0030.01316.00
7.1.230.0090.00316.02
7.1.220.0000.01315.83
7.1.210.0030.01315.89
7.1.200.0030.01316.02
7.1.190.0030.00615.82
7.1.180.0000.01316.04
7.1.170.0030.00715.73
7.1.160.0030.00715.91
7.1.150.0030.01315.64
7.1.140.0000.00915.78
7.1.130.0030.01015.90
7.1.120.0110.00416.04
7.1.110.0090.00616.04
7.1.100.0070.00315.72
7.1.90.0060.00615.61
7.1.80.0030.00915.58
7.1.70.0150.00816.52
7.1.60.0050.01317.52
7.1.50.0080.01116.52
7.1.40.0070.01015.87
7.1.30.0000.00915.82
7.1.20.0070.00715.77
7.1.10.0000.00815.88
7.1.00.0020.02419.13
7.0.330.0000.01715.62
7.0.320.0060.00315.66
7.0.310.0030.00715.42
7.0.300.0070.00315.45
7.0.290.0040.00415.52
7.0.280.0060.00615.52
7.0.270.0040.00815.50
7.0.260.0030.00715.68
7.0.250.0030.01015.61
7.0.240.0030.01015.63
7.0.230.0030.00915.49
7.0.220.0080.00415.59
7.0.210.0030.00715.10
7.0.200.0060.00616.12
7.0.190.0030.01015.58
7.0.180.0030.00915.24
7.0.170.0000.00815.24
7.0.160.0060.00615.49
7.0.150.0040.00415.53
7.0.140.0050.04018.81
7.0.130.0000.01315.49
7.0.120.0060.01015.54
7.0.110.0140.03917.84
7.0.100.0230.04517.70
7.0.90.0180.03317.69
7.0.80.0300.04117.71
7.0.70.0350.03717.78
7.0.60.0450.02017.83
7.0.50.0350.03617.73
7.0.40.0100.04116.77
7.0.30.0070.04216.73
7.0.20.0090.03916.72
7.0.10.0070.04516.59
7.0.00.0070.04016.74
5.6.400.0070.00714.26
5.6.390.0100.00314.42
5.6.380.0070.00714.43
5.6.370.0100.00314.61
5.6.360.0000.01513.94
5.6.350.0070.00714.16
5.6.340.0000.01114.02
5.6.330.0130.00014.41
5.6.320.0060.00914.40
5.6.310.0070.00714.48
5.6.300.0110.00314.24
5.6.290.0040.00814.54
5.6.280.0050.04217.67
5.6.270.0060.00614.44
5.6.260.0080.04117.47
5.6.250.0030.02817.27
5.6.240.0050.02317.48
5.6.230.0050.02717.36
5.6.220.0120.03517.36
5.6.210.0060.04117.46
5.6.200.0070.04317.62
5.6.190.0100.02517.57
5.6.180.0030.03317.40
5.6.170.0080.04517.32
5.6.160.0060.03817.37
5.6.150.0100.04417.37
5.6.140.0060.04117.55
5.6.130.0080.04317.38
5.6.120.0080.02517.44
5.6.110.0100.03617.36
5.6.100.0130.03717.33
5.6.90.0090.02217.43
5.6.80.0070.04217.12
5.6.70.0080.02517.07
5.6.60.0110.03617.15
5.6.50.0100.04017.15
5.6.40.0070.03917.00
5.6.30.0060.04117.15
5.6.20.0070.02517.13
5.6.10.0080.04017.08
5.6.00.0020.04717.16
5.5.380.0110.03516.03
5.5.370.0020.03015.85
5.5.360.0080.05015.94
5.5.350.0070.03915.85
5.5.340.0170.03516.05
5.5.330.0070.04216.17
5.5.320.0090.02616.07
5.5.310.0050.04216.27
5.5.300.0080.04316.25
5.5.290.0120.02215.97
5.5.280.0080.04215.98
5.5.270.0070.04416.09
5.5.260.0060.03915.97
5.5.250.0120.03715.92
5.5.240.0020.03115.79
5.5.230.0020.02415.65
5.5.220.0050.04715.67
5.5.210.0120.03715.66
5.5.200.0120.03615.57
5.5.190.0110.02715.83
5.5.180.0070.03515.76
5.5.170.0040.01114.27
5.5.160.0030.02615.88
5.5.150.0100.01815.80
5.5.140.0070.04115.89
5.5.130.0020.02415.67
5.5.120.0050.02015.59
5.5.110.0110.03615.84
5.5.100.0050.04115.52
5.5.90.0020.04415.76
5.5.80.0020.04315.71
5.5.70.0080.02315.73
5.5.60.0080.03815.73
5.5.50.0050.03515.64
5.5.40.0100.02315.69
5.5.30.0030.02415.53
5.5.20.0050.04615.68
5.5.10.0030.03115.75
5.5.00.0050.04515.63
5.4.450.0030.04115.40
5.4.440.0130.03415.04
5.4.430.0030.04015.19
5.4.420.0040.03115.18
5.4.410.0050.04015.13
5.4.400.0020.03115.15
5.4.390.0000.02614.99
5.4.380.0050.02615.02
5.4.370.0030.02814.95
5.4.360.0070.04014.94
5.4.350.0030.04214.94
5.4.340.0020.04414.86
5.4.330.0040.00710.74
5.4.320.0050.04214.97
5.4.310.0030.02315.02
5.4.300.0050.04014.88
5.4.290.0080.02015.00
5.4.280.0070.03615.01
5.4.270.0050.02215.19
5.4.260.0020.02315.00
5.4.250.0030.03214.78
5.4.240.0070.03315.17
5.4.230.0020.04214.93
5.4.220.0030.03215.04
5.4.210.0130.02314.97
5.4.200.0060.04314.96
5.4.190.0050.03514.84
5.4.180.0070.04314.92
5.4.170.0030.04214.87
5.4.160.0050.03514.98
5.4.150.0030.02814.94
5.4.140.0080.02313.68
5.4.130.0030.04113.43
5.4.120.0050.03413.59
5.4.110.0090.02413.79
5.4.100.0030.03013.77
5.4.90.0030.02113.71
5.4.80.0060.02313.69
5.4.70.0050.02213.72
5.4.60.0070.02813.53
5.4.50.0030.04113.68
5.4.40.0030.02813.77
5.4.30.0000.02813.62
5.4.20.0050.03313.64
5.4.10.0030.02613.69
5.4.00.0020.02613.43
5.3.290.0050.03912.57
5.3.280.0070.03512.54
5.3.270.0010.02812.60
5.3.260.0080.02612.37
5.3.250.0030.02312.54
5.3.240.0080.03512.47
5.3.230.0080.02312.38
5.3.220.0050.04012.34
5.3.210.0070.03812.43
5.3.200.0020.03212.39
5.3.190.0020.03312.48
5.3.180.0050.04012.54
5.3.170.0060.02612.50
5.3.160.0030.03912.41
5.3.150.0100.03712.55
5.3.140.0060.02512.44
5.3.130.0090.03712.45
5.3.120.0030.04312.49
5.3.110.0070.03512.41
5.3.100.0080.02812.21
5.3.90.0030.02012.20
5.3.80.0050.02112.15
5.3.70.0030.02212.04
5.3.60.0030.02812.11
5.3.50.0040.02412.01
5.3.40.0090.02011.99
5.3.30.0020.03512.17
5.3.20.0070.03411.93
5.3.10.0030.03511.78
5.3.00.0050.04811.88
5.2.170.0000.06712.16
5.2.160.0030.04012.16
5.2.150.0070.06312.16
5.2.140.0000.03712.16
5.2.130.0030.05712.16
5.2.120.0070.06012.16
5.2.110.0070.02712.16
5.2.100.0070.05312.16
5.2.90.0100.02712.16
5.2.80.0000.04012.16
5.2.70.0070.02712.16
5.2.60.0100.06312.16
5.2.50.0000.03012.16
5.2.40.0030.03012.16
5.2.30.0070.04312.16
5.2.20.0000.03312.16
5.2.10.0070.04712.16
5.2.00.0030.02712.16
5.1.60.0000.03312.16
5.1.50.0030.04312.16
5.1.40.0100.01712.16
5.1.30.0030.02312.16
5.1.20.0030.02312.16
5.1.10.0000.03712.16
5.1.00.0030.02312.16
5.0.50.0000.05012.16
5.0.40.0030.04012.16
5.0.30.0030.04012.16
5.0.20.0070.01312.16
5.0.10.0000.02312.16
5.0.00.0070.03312.16
4.4.90.0000.01712.16
4.4.80.0030.01312.16
4.4.70.0030.01012.16
4.4.60.0030.01312.16
4.4.50.0000.03012.16
4.4.40.0030.02312.16
4.4.30.0030.02012.16
4.4.20.0030.01312.16
4.4.10.0000.03712.16
4.4.00.0000.05712.16
4.3.110.0070.02012.16
4.3.100.0070.02712.16
4.3.90.0000.01312.16
4.3.80.0000.02712.16
4.3.70.0000.01712.16
4.3.60.0030.03012.16
4.3.50.0000.01312.16
4.3.40.0000.03012.16
4.3.30.0000.01712.16
4.3.20.0000.03312.16
4.3.10.0070.02712.16
4.3.00.0000.01712.16

preferences:
58.51 ms | 400 KiB | 5 Q