3v4l.org

run code in 300+ PHP versions simultaneously
<?php $expr = '! ^ (?: (?P<scheme> [a-z][a-z0-9.]* ) : )? (?: // (?<authority> (?: (?P<user> [^:@]+ ) (?: : (?P<pass> [^@]+ ) )? @ )? (?P<host> [^:/]+ ) (?: : (?P<port> [0-9]+ ) )? ) )? (?P<path> /[^?#]+ )? (?: \? (?P<query> [^#]+ ) )? (?: # (?P<fragment> .+ ) )? $ !ix'; $urls = [ 'http://host.com/path', 'http://user@host.com/path', 'http://user:pass@host.com/path', 'http://user:pass@host.com:8080/path', '//user:pass@host.com:8080/path', 'http://user:pass@host.com:8080/path?query#fragment', ]; foreach ($urls as $str) { echo "$str\n"; preg_match($expr, $str, $matches); foreach ($matches as $key => $match) { if (!is_int($key) && $match !== '') { echo " $key: $match\n"; } } echo "\n"; }

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.0070.00718.53
8.3.50.0070.00822.09
8.3.40.0110.01118.79
8.3.30.0070.00719.03
8.3.20.0000.00720.33
8.3.10.0040.00423.48
8.3.00.0040.00420.77
8.2.180.0150.00316.38
8.2.170.0090.00622.96
8.2.160.0070.00720.53
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0040.00419.51
8.2.110.0030.00722.22
8.2.100.0040.00817.84
8.2.90.0050.00319.09
8.2.80.0060.00317.97
8.2.70.0030.00517.63
8.2.60.0100.00017.80
8.2.50.0060.00318.07
8.2.40.0040.00420.01
8.2.30.0050.00218.35
8.2.20.0110.00017.77
8.2.10.0050.00318.14
8.2.00.0000.00819.61
8.1.280.0120.00925.92
8.1.270.0030.00724.14
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0070.00323.69
8.1.230.0120.00019.12
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0040.00417.48
8.1.180.0040.00418.10
8.1.170.0080.00018.72
8.1.160.0070.00022.16
8.1.150.0000.00818.73
8.1.140.0080.00017.58
8.1.130.0000.00717.89
8.1.120.0020.00517.53
8.1.110.0050.00217.57
8.1.100.0040.00417.64
8.1.90.0000.00817.63
8.1.80.0040.00417.62
8.1.70.0000.00717.56
8.1.60.0030.00617.70
8.1.50.0040.00417.70
8.1.40.0030.00617.64
8.1.30.0060.00317.82
8.1.20.0040.00417.80
8.1.10.0030.00517.59
8.1.00.0030.00517.61
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0070.00018.47
8.0.270.0000.00717.20
8.0.260.0000.00717.29
8.0.250.0040.00317.11
8.0.240.0080.00017.05
8.0.230.0070.00017.01
8.0.220.0000.00816.94
8.0.210.0000.00716.92
8.0.200.0040.00417.17
8.0.190.0040.00417.08
8.0.180.0060.00317.11
8.0.170.0040.00417.05
8.0.160.0000.00817.00
8.0.150.0000.00817.04
8.0.140.0030.00516.89
8.0.130.0060.00013.49
8.0.120.0080.00016.98
8.0.110.0040.00417.09
8.0.100.0000.00716.94
8.0.90.0070.00317.12
8.0.80.0060.01217.08
8.0.70.0000.00717.09
8.0.60.0000.00716.93
8.0.50.0000.00716.85
8.0.30.0100.00917.33
8.0.20.0090.01017.40
8.0.10.0050.00316.96
8.0.00.0080.01116.96
7.4.330.0020.00215.01
7.4.320.0030.00316.74
7.4.300.0000.00616.86
7.4.290.0000.00716.83
7.4.280.0000.00916.81
7.4.270.0000.00816.81
7.4.260.0030.00516.70
7.4.250.0050.00216.79
7.4.240.0070.00216.78
7.4.230.0070.00016.76
7.4.220.0110.00716.86
7.4.210.0070.01316.86
7.4.200.0040.00416.73
7.4.160.0060.00916.78
7.4.150.0110.01117.40
7.4.140.0130.00817.86
7.4.130.0080.01016.57
7.4.120.0060.01016.71
7.4.110.0070.01116.67
7.4.100.0100.00716.74
7.4.90.0170.00316.71
7.4.80.0120.01219.39
7.4.70.0120.00616.66
7.4.60.0110.00616.45
7.4.50.0000.00516.59
7.4.40.0110.00616.73
7.4.30.0030.01516.59
7.4.00.0070.00715.02
7.3.330.0000.00613.23
7.3.320.0030.00313.38
7.3.310.0040.00416.61
7.3.300.0070.00016.38
7.3.290.0070.00716.51
7.3.280.0080.00816.53
7.3.270.0170.00917.40
7.3.260.0150.00616.89
7.3.250.0120.01016.61
7.3.240.0030.01316.57
7.3.230.0070.01116.87
7.3.210.0090.01216.44
7.3.200.0100.01319.39
7.3.190.0110.01116.79
7.3.180.0040.01516.97
7.3.170.0130.00316.45
7.3.160.0080.00816.61
7.3.120.0110.00414.96
7.3.10.0090.00716.77
7.3.00.0060.01116.69
7.2.330.0090.00916.77
7.2.320.0130.00316.84
7.2.310.0100.00816.77
7.2.300.0090.00916.94
7.2.290.0060.01116.71
7.2.130.0090.00317.08
7.2.120.0090.00617.16
7.2.110.0090.00617.09
7.2.100.0120.00316.93
7.2.90.0050.01116.99
7.2.80.0100.00116.95
7.2.70.0040.01017.28
7.2.60.0070.00417.08
7.2.50.0110.00217.17
7.2.40.0050.00817.09
7.2.30.0060.00616.95
7.2.20.0070.00717.17
7.2.10.0030.00917.06
7.2.00.0080.00617.25
7.1.250.0070.00716.04
7.1.70.0040.01117.36
7.1.60.0060.01919.70
7.1.50.0070.01717.20
7.1.00.0100.07022.39
7.0.200.0030.00716.86
7.0.140.0030.07722.07
7.0.60.0130.03019.88
7.0.50.0030.05017.84
7.0.40.0070.08719.94
7.0.30.0530.06020.03
7.0.20.0400.06720.12
7.0.10.0230.05320.03
7.0.00.0100.08320.19
5.6.280.0100.06721.12
5.6.210.0100.08020.60
5.6.200.0100.06318.15
5.6.190.0030.08320.41
5.6.180.0000.04720.77
5.6.170.0330.07720.71
5.6.160.0070.08320.50
5.6.150.0030.04018.12
5.6.140.0000.05018.14
5.6.130.0130.03718.12
5.6.120.0130.04720.99
5.6.110.0030.04320.96
5.6.100.0200.07020.98
5.6.90.0030.08021.17
5.6.80.0130.06320.38
5.6.70.2870.02720.39
5.5.350.0030.08720.46
5.5.340.0030.04317.92
5.5.330.0070.07720.23
5.5.320.0070.08320.29
5.5.310.0270.05020.17
5.5.300.0000.07318.02
5.5.290.0130.07317.98
5.5.280.0070.08320.85
5.5.270.0070.04320.75
5.5.260.0030.06020.95
5.5.250.0070.08320.68
5.5.240.0030.04720.19
5.4.450.3700.04319.39
5.4.440.0070.05319.24
5.4.430.1400.06719.22
5.4.420.3600.04019.48
5.4.410.3900.03319.36
5.4.400.3830.03719.09
5.4.390.4430.03719.19
5.4.380.3930.04019.10
5.4.370.3930.04019.07
5.4.360.3830.03719.04
5.4.350.3900.03719.19
5.4.340.4000.03719.19
5.4.320.0070.04018.90
5.4.310.4500.03718.87
5.4.300.4400.03719.13
5.4.290.3870.03319.16
5.4.280.3630.04319.12
5.4.270.3800.03318.99
5.4.260.3930.03719.13
5.4.250.3870.04019.07
5.4.240.3830.03718.86
5.4.230.3730.04019.19
5.4.220.3600.04018.99
5.4.210.3830.04019.03
5.4.200.3570.04018.86
5.4.190.3830.03319.00
5.4.180.4730.04019.07
5.4.170.3130.03719.12
5.4.160.3500.03318.87
5.4.150.3630.03719.23
5.4.140.3770.03316.12
5.4.130.3900.03716.33
5.4.120.3700.03316.25
5.4.110.3730.04016.33
5.4.100.3600.04016.51
5.4.90.3630.03716.33
5.4.80.3900.04016.43
5.4.70.3770.04016.49
5.4.60.3770.04016.24
5.4.50.3670.03716.20
5.4.40.3600.03716.30
5.4.30.3630.03016.54
5.4.20.3770.03316.36
5.4.10.4600.03016.54
5.4.00.3900.03015.77
5.3.290.0070.07714.59
5.3.280.3800.03714.61
5.3.270.3770.04714.57
5.3.260.3200.02714.54
5.3.250.3830.03714.54
5.3.240.3700.03714.50
5.3.230.4070.02714.69
5.3.220.3630.03714.66
5.3.210.3970.03314.46
5.3.200.3800.03714.54
5.3.190.3700.04714.50
5.3.180.3700.03014.38
5.3.170.3670.03714.50
5.3.160.3830.04014.46
5.3.150.3730.03714.46
5.3.140.3870.03714.45
5.3.130.3570.03314.49
5.3.120.3400.03714.37
5.3.110.4400.04014.48
5.3.100.3730.03713.95
5.3.90.3730.03013.95
5.3.80.3900.02713.96
5.3.70.3670.03713.94
5.3.60.3630.03313.79
5.3.50.3670.03713.88
5.3.40.4330.04313.91
5.3.30.3630.03713.88
5.3.20.3600.03713.48
5.3.10.3670.03013.75
5.3.00.3870.03313.58
5.2.170.3170.03011.00
5.2.160.3170.01711.13
5.2.150.3100.02311.22
5.2.140.2700.03310.99
5.2.130.3100.03011.04
5.2.120.3130.02311.00
5.2.110.3000.03011.06
5.2.100.3300.02711.04
5.2.90.3300.03011.09
5.2.80.3000.04011.03
5.2.70.3430.03311.08
5.2.60.2970.03010.98
5.2.50.3170.03011.09
5.2.40.2330.03310.98
5.2.30.2700.03010.98
5.2.20.2430.03011.05
5.2.10.2600.03010.89
5.2.00.2470.02310.73
5.1.60.2730.0239.99
5.1.50.2730.0239.97
5.1.40.2600.0209.99
5.1.30.2370.03010.33
5.1.20.2730.03310.34
5.1.10.2730.02710.08
5.1.00.2270.02010.08
5.0.50.1200.0208.54
5.0.40.1200.0208.31
5.0.30.1230.0278.25
5.0.20.1200.0208.26
5.0.10.1430.0308.13
5.0.00.1370.0338.16
4.4.90.1200.0135.90
4.4.80.0870.0235.80
4.4.70.1430.0175.79
4.4.60.1170.0175.84
4.4.50.1700.0105.84
4.4.40.1470.0235.83
4.4.30.1470.0175.88
4.4.20.1370.0205.90
4.4.10.1400.0175.88
4.4.00.1270.0275.80
4.3.110.1170.0175.83
4.3.100.1230.0135.75
4.3.90.1470.0175.68
4.3.80.1530.0205.80
4.3.70.1400.0175.76
4.3.60.1500.0135.71
4.3.50.1230.0135.71
4.3.40.1230.0235.68
4.3.30.0700.0135.10
4.3.20.0870.0175.10
4.3.10.0900.0235.10
4.3.00.1070.0105.10

preferences:
41.87 ms | 401 KiB | 5 Q