3v4l.org

run code in 300+ PHP versions simultaneously
<?php $year = "2008"; $range = "2008-2013"; $shite = "20008-20013"; $regex = "/(\d{0,4}+(?:-\d{0,4}+)?)/is"; $matches = array(array()); preg_match($regex, $range, $matches[0]); preg_match($regex, $year, $matches[1]); preg_match($regex, $shite, $matches[2]); 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.0040.01818.61
8.3.50.0210.00016.36
8.3.40.0060.00918.79
8.3.30.0070.00720.35
8.3.20.0080.00020.25
8.3.10.0040.00421.96
8.3.00.0040.00422.43
8.2.180.0100.00616.63
8.2.170.0070.00722.96
8.2.160.0060.00922.34
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00020.95
8.2.110.0070.00320.40
8.2.100.0080.00417.97
8.2.90.0040.00417.88
8.2.80.0040.00419.66
8.2.70.0030.00717.93
8.2.60.0090.00018.03
8.2.50.0030.00518.10
8.2.40.0050.00321.34
8.2.30.0000.00718.14
8.2.20.0060.00317.81
8.2.10.0000.00817.64
8.2.00.0040.00417.76
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00723.82
8.1.230.0060.00620.97
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0080.00017.35
8.1.190.0030.00717.00
8.1.180.0000.00818.10
8.1.170.0000.00818.67
8.1.160.0080.00018.91
8.1.150.0050.00218.67
8.1.140.0040.00417.45
8.1.130.0000.00817.77
8.1.120.0040.00417.52
8.1.110.0000.00817.57
8.1.100.0040.00417.54
8.1.90.0030.00617.45
8.1.80.0040.00417.57
8.1.70.0000.00717.48
8.1.60.0050.00317.69
8.1.50.0040.00417.59
8.1.40.0040.00417.66
8.1.30.0040.00417.72
8.1.20.0040.00417.71
8.1.10.0060.00317.63
8.1.00.0030.01017.48
8.0.300.0040.00419.77
8.0.290.0030.00616.88
8.0.280.0070.00018.39
8.0.270.0000.00717.25
8.0.260.0030.00316.75
8.0.250.0070.00017.03
8.0.240.0050.00216.98
8.0.230.0040.00416.95
8.0.220.0030.00316.95
8.0.210.0000.00716.85
8.0.200.0000.00717.01
8.0.190.0050.00317.01
8.0.180.0080.00016.99
8.0.170.0000.00816.87
8.0.160.0000.00816.91
8.0.150.0000.00816.88
8.0.140.0040.00416.92
8.0.130.0060.00013.43
8.0.120.0060.00316.94
8.0.110.0020.00517.03
8.0.100.0020.00516.83
8.0.90.0040.00416.77
8.0.80.0090.00616.92
8.0.70.0000.00716.87
8.0.60.0000.00716.78
8.0.50.0000.00816.82
8.0.30.0130.00916.95
8.0.20.0160.00817.40
8.0.10.0040.00416.91
8.0.00.0080.01016.86
7.4.330.0040.00215.00
7.4.320.0040.00416.74
7.4.300.0060.00016.74
7.4.290.0050.00516.56
7.4.280.0000.00616.74
7.4.270.0000.00716.55
7.4.260.0000.00713.42
7.4.250.0050.00316.65
7.4.240.0050.00216.66
7.4.230.0000.00716.64
7.4.220.0100.01016.70
7.4.210.0090.00616.70
7.4.200.0030.00316.54
7.4.190.0000.00716.50
7.4.160.0040.01116.71
7.4.150.0070.01117.40
7.4.140.0100.01317.86
7.4.130.0120.00516.67
7.4.120.0150.00516.57
7.4.110.0100.00716.66
7.4.100.0030.01616.77
7.4.90.0150.00316.71
7.4.80.0130.00619.39
7.4.70.0100.00616.33
7.4.60.0040.01416.64
7.4.50.0000.00816.53
7.4.40.0030.01222.77
7.4.30.0100.00616.58
7.4.00.0090.00615.21
7.3.330.0050.00013.18
7.3.320.0030.00313.32
7.3.310.0000.00716.28
7.3.300.0000.00716.28
7.3.290.0060.01016.29
7.3.280.0100.00616.34
7.3.270.0070.01017.40
7.3.260.0080.01516.59
7.3.250.0130.00516.50
7.3.240.0130.00316.33
7.3.230.0180.00616.66
7.3.210.0090.00916.77
7.3.200.0080.00819.39
7.3.190.0070.01316.65
7.3.180.0100.00816.61
7.3.170.0120.00416.63
7.3.160.0140.00316.61
7.3.120.0060.00915.03
7.3.10.0090.01016.80
7.3.00.0070.01016.74
7.2.330.0130.00316.54
7.2.320.0160.01016.46
7.2.310.0060.01516.42
7.2.300.0080.00816.48
7.2.290.0040.01316.55
7.2.130.0050.01317.01
7.2.120.0110.00316.96
7.2.110.0050.01016.79
7.2.100.0070.00916.86
7.2.90.0070.00916.82
7.2.80.0060.01016.79
7.2.70.0090.00916.84
7.2.60.0090.00716.82
7.2.50.0120.00616.99
7.2.40.0090.00816.98
7.2.30.0080.00616.92
7.2.20.0100.00617.01
7.2.10.0090.00416.83
7.2.00.0030.00917.53
7.1.250.0080.00715.69
7.1.230.0040.01315.74
7.1.220.0190.00015.55
7.1.210.0120.00615.92
7.1.200.0110.00315.86
7.1.190.0130.00315.84
7.1.180.0080.01015.49
7.1.170.0150.00015.63
7.1.160.0110.00615.71
7.1.150.0140.00415.93
7.1.140.0050.00815.95
7.1.130.0090.00415.59
7.1.120.0030.01215.58
7.1.110.0080.00815.93
7.1.100.0040.01317.00
7.1.90.0110.00615.94
7.1.80.0130.00615.92
7.1.70.0100.00616.70
7.1.60.0080.01017.70
7.1.50.0090.01016.53
7.1.40.0070.01015.87
7.1.30.0040.01115.93
7.1.20.0130.00316.02
7.1.10.0150.00015.86
7.1.00.0020.03519.17
7.0.310.0100.00715.71
7.0.300.0080.00815.37
7.0.290.0030.01415.56
7.0.280.0120.00315.55
7.0.270.0130.00215.65
7.0.260.0180.00015.32
7.0.250.0000.01315.59
7.0.240.0090.00215.36
7.0.230.0040.01315.43
7.0.220.0140.00315.26
7.0.210.0170.00015.30
7.0.200.0060.00616.26
7.0.190.0140.00315.53
7.0.180.0150.00315.57
7.0.170.0070.01115.71
7.0.160.0090.00915.57
7.0.150.0040.01115.67
7.0.140.0080.03718.86
7.0.130.0080.00415.21
7.0.120.0040.01115.71
7.0.110.0090.00315.41
7.0.100.0100.02717.79
7.0.90.0170.02617.93
7.0.80.0150.03417.76
7.0.70.0100.04017.67
7.0.60.0150.03917.70
7.0.50.0080.02317.98
7.0.40.0080.04116.85
7.0.30.0050.03616.78
7.0.20.0060.03816.66
7.0.10.0040.02716.82
7.0.00.0080.02016.79
5.6.380.0030.01014.56
5.6.370.0060.01014.04
5.6.360.0060.01014.66
5.6.350.0120.00314.58
5.6.340.0150.00014.84
5.6.330.0080.00814.66
5.6.320.0080.01114.29
5.6.310.0040.00714.54
5.6.300.0000.01114.06
5.6.290.0030.00613.95
5.6.280.0100.03517.58
5.6.270.0030.00914.79
5.6.260.0090.00614.50
5.6.250.0070.02317.65
5.6.240.0030.02417.50
5.6.230.0040.02217.47
5.6.220.0070.04317.54
5.6.210.0070.03817.55
5.6.200.0070.02317.69
5.6.190.0080.03717.75
5.6.180.0050.03217.67
5.6.170.0080.02317.70
5.6.160.0050.04717.66
5.6.150.0080.03717.77
5.6.140.0100.04317.70
5.6.130.0070.02717.75
5.6.120.0060.03317.52
5.6.110.0100.04317.55
5.6.100.0070.02317.57
5.6.90.0100.03317.73
5.6.80.0070.02717.33
5.6.70.0070.02517.24
5.6.60.0070.03917.34
5.6.50.0090.04117.53
5.6.40.0050.03317.36
5.6.30.0120.03917.31
5.6.20.0060.02317.08
5.6.10.0070.03217.48
5.6.00.0050.04617.30
5.5.380.0020.02315.87
5.5.370.0100.01515.80
5.5.360.0080.04215.74
5.5.350.0020.03615.79
5.5.340.0030.03516.08
5.5.330.0110.03316.03
5.5.320.0030.04515.88
5.5.310.0060.04616.02
5.5.300.0070.03815.99
5.5.290.0060.02016.03
5.5.280.0130.01515.91
5.5.270.0030.02916.09
5.5.260.0050.03216.04
5.5.250.0000.02915.84
5.5.240.0080.03115.73
5.5.230.0020.03415.58
5.5.220.0020.02215.73
5.5.210.0040.02915.53
5.5.200.0020.03715.63
5.5.190.0090.04015.66
5.5.180.0070.03015.64
5.5.170.0030.00914.36
5.5.160.0080.02215.72
5.5.150.0020.02515.67
5.5.140.0020.04415.48
5.5.130.0060.02315.52
5.5.120.0050.02515.76
5.5.110.0070.03015.72
5.5.100.0090.03815.63
5.5.90.0070.01815.51
5.5.80.0050.03315.64
5.5.70.0080.01815.64
5.5.60.0070.02015.48
5.5.50.0020.04115.52
5.5.40.0000.02515.59
5.5.30.0070.03515.48
5.5.20.0070.03815.64
5.5.10.0100.02515.64
5.5.00.0060.03315.61
5.4.450.0000.02715.36
5.4.440.0030.03315.25
5.4.430.0080.03815.22
5.4.420.0080.03515.19
5.4.410.0070.03315.33
5.4.400.0110.03215.06
5.4.390.0050.04215.13
5.4.380.0050.04015.09
5.4.370.0030.02315.06
5.4.360.0030.02115.00
5.4.350.0030.03415.11
5.4.340.0030.02215.20
5.4.330.0000.00911.16
5.4.320.0020.04415.11
5.4.310.0080.02815.19
5.4.300.0030.03714.95
5.4.290.0050.02815.15
5.4.280.0070.03214.99
5.4.270.0080.01815.00
5.4.260.0050.04214.95
5.4.250.0060.03315.15
5.4.240.0080.03314.96
5.4.230.0070.01915.13
5.4.220.0000.03915.24
5.4.210.0100.01814.93
5.4.200.0030.02715.01
5.4.190.0020.02214.94
5.4.180.0080.03115.11
5.4.170.0020.02115.00
5.4.160.0050.03615.12
5.4.150.0060.03515.19
5.4.140.0080.01513.75
5.4.130.0100.01513.81
5.4.120.0020.03013.84
5.4.110.0030.02113.80
5.4.100.0060.02213.86
5.4.90.0000.03713.76
5.4.80.0050.03313.60
5.4.70.0020.04013.77
5.4.60.0080.03313.79
5.4.50.0060.01813.71
5.4.40.0050.03513.77
5.4.30.0080.03813.84
5.4.20.0050.04213.79
5.4.10.0030.03013.84
5.4.00.0070.03213.50
5.3.290.0040.02712.70
5.3.280.0050.04312.67
5.3.270.0060.04112.59
5.3.260.0040.03312.72
5.3.250.0070.01812.66
5.3.240.0030.03612.58
5.3.230.0030.01812.58
5.3.220.0030.02012.61
5.3.210.0050.02212.59
5.3.200.0080.03212.61
5.3.190.0050.03512.60
5.3.180.0050.04212.62
5.3.170.0070.03912.62
5.3.160.0100.02812.60
5.3.150.0120.01312.67
5.3.140.0010.02312.65
5.3.130.0070.02512.64
5.3.120.0100.02512.54
5.3.110.0050.04312.54
5.3.100.0080.03812.35
5.3.90.0050.03512.38
5.3.80.0100.02012.34
5.3.70.0090.03512.31
5.3.60.0030.02512.26
5.3.50.0020.02312.24
5.3.40.0100.02812.30
5.3.30.0080.03012.32
5.3.20.0070.03812.18
5.3.10.0080.03812.16
5.3.00.0000.02712.08
5.2.170.0080.02610.93
5.2.160.0020.01910.88
5.2.150.0030.01810.87
5.2.140.0020.03410.83
5.2.130.0030.03510.85
5.2.120.0070.03210.92
5.2.110.0050.03110.91
5.2.100.0080.02810.81
5.2.90.0060.02310.88
5.2.80.0030.01810.80
5.2.70.0030.01610.79
5.2.60.0070.03110.82
5.2.50.0060.01710.87
5.2.40.0030.03310.77
5.2.30.0040.03210.72
5.2.20.0050.03310.82
5.2.10.0040.01910.76
5.2.00.0050.01710.69
5.1.60.0030.02210.30
5.1.50.0070.02710.32
5.1.40.0060.01310.29
5.1.30.0050.02510.50
5.1.20.0030.02110.45
5.1.10.0020.01910.38
5.1.00.0050.01210.36
5.0.50.0030.01510.09
5.0.40.0050.01910.09
5.0.30.0010.03510.09
5.0.20.0050.02210.09
5.0.10.0050.01510.09
5.0.00.0000.03610.09
4.4.90.0010.02010.09
4.4.80.0020.01010.09
4.4.70.0050.00810.09
4.4.60.0030.01410.09
4.4.50.0020.02010.09
4.4.40.0030.01310.09
4.4.30.0030.01410.09
4.4.20.0050.01910.09
4.4.10.0000.02210.09
4.4.00.0030.02310.09
4.3.110.0050.01510.09
4.3.100.0000.01710.09
4.3.90.0030.01810.09
4.3.80.0020.01410.09
4.3.70.0070.01510.09
4.3.60.0050.01510.09
4.3.50.0000.01910.09
4.3.40.0050.01510.09
4.3.30.0020.01910.09
4.3.20.0020.01310.09
4.3.10.0020.01010.09
4.3.00.0020.02010.09

preferences:
55.85 ms | 400 KiB | 5 Q