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); var_dump($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.0100.01318.31
8.3.50.0280.00622.18
8.3.40.0160.00618.63
8.3.30.0060.00919.10
8.3.20.0080.00020.31
8.3.10.0090.00023.69
8.3.00.0100.00020.76
8.2.180.0130.00616.50
8.2.170.0130.00622.96
8.2.160.0040.01220.52
8.2.150.0030.00524.18
8.2.140.0090.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00419.61
8.2.110.0000.01022.38
8.2.100.0130.00018.03
8.2.90.0040.00419.22
8.2.80.0090.00017.97
8.2.70.0060.00317.88
8.2.60.0000.01217.80
8.2.50.0000.00918.07
8.2.40.0000.00920.07
8.2.30.0040.00418.33
8.2.20.0060.00317.93
8.2.10.0000.00818.24
8.2.00.0080.00019.54
8.1.280.0220.00925.92
8.1.270.0070.01023.82
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.72
8.1.230.0070.00419.21
8.1.220.0040.00417.76
8.1.210.0050.00318.77
8.1.200.0100.00017.60
8.1.190.0000.00817.60
8.1.180.0030.00618.10
8.1.170.0000.00918.84
8.1.160.0000.00822.07
8.1.150.0000.00818.73
8.1.140.0040.00417.70
8.1.130.0070.00017.87
8.1.120.0030.00517.54
8.1.110.0040.00417.64
8.1.100.0080.00017.64
8.1.90.0050.00317.61
8.1.80.0040.00417.55
8.1.70.0070.00017.52
8.1.60.0100.00017.81
8.1.50.0030.00617.65
8.1.40.0060.00317.68
8.1.30.0040.00417.73
8.1.20.0050.00317.73
8.1.10.0040.00417.64
8.1.00.0050.00317.52
8.0.300.0000.00718.77
8.0.290.0000.00817.00
8.0.280.0040.00418.52
8.0.270.0030.00517.23
8.0.260.0000.00717.29
8.0.250.0040.00417.14
8.0.240.0030.00617.11
8.0.230.0000.00717.11
8.0.220.0020.00517.09
8.0.210.0000.00817.08
8.0.200.0030.00317.02
8.0.190.0080.00017.17
8.0.180.0040.00417.09
8.0.170.0000.00916.98
8.0.160.0080.00016.96
8.0.150.0040.00416.86
8.0.140.0000.01116.93
8.0.130.0060.00013.45
8.0.120.0030.00616.94
8.0.110.0030.00517.05
8.0.100.0000.00816.91
8.0.90.0030.00516.96
8.0.80.0030.02017.00
8.0.70.0000.00817.10
8.0.60.0080.00016.95
8.0.50.0080.00017.10
8.0.30.0090.01317.46
8.0.20.0120.01117.40
8.0.10.0060.00317.27
8.0.00.0130.00616.93
7.4.330.0030.00315.12
7.4.320.0060.00016.83
7.4.300.0000.00616.79
7.4.290.0000.00716.86
7.4.280.0030.00716.65
7.4.270.0080.00016.84
7.4.260.0000.00716.82
7.4.250.0060.00316.70
7.4.240.0050.00216.76
7.4.230.0000.00716.96
7.4.220.0060.01216.77
7.4.210.0030.02116.82
7.4.200.0070.00016.94
7.4.160.0120.00616.92
7.4.150.0130.01017.40
7.4.140.0070.01417.86
7.4.130.0100.01016.71
7.4.120.0130.00816.77
7.4.110.0070.01416.68
7.4.100.0170.00316.65
7.4.90.0000.02116.84
7.4.80.0170.00719.39
7.4.70.0160.00616.79
7.4.60.0030.01516.47
7.4.50.0030.00616.61
7.4.40.0160.00516.73
7.4.30.0080.01816.86
7.4.10.0040.01515.32
7.4.00.0110.00615.31
7.3.330.0060.00013.21
7.3.320.0060.00013.16
7.3.310.0030.00516.48
7.3.300.0040.00416.46
7.3.290.0110.00416.54
7.3.280.0090.01116.43
7.3.270.0160.00617.40
7.3.260.0130.01816.55
7.3.250.0120.01016.52
7.3.240.0070.01716.45
7.3.230.0090.01216.39
7.3.210.0150.00616.82
7.3.200.0110.01419.39
7.3.190.0140.00716.68
7.3.180.0060.01116.68
7.3.170.0100.01716.55
7.3.160.0120.01016.50
7.3.130.0000.01815.05
7.3.120.0080.01014.91
7.3.110.0090.01115.10
7.3.100.0050.01115.21
7.3.90.0070.00515.04
7.3.80.0080.00814.96
7.3.70.0090.00514.90
7.3.60.0030.01215.08
7.3.50.0080.01015.13
7.3.40.0080.00814.99
7.3.30.0090.00715.11
7.3.20.0070.00716.79
7.3.10.0070.00816.77
7.3.00.0110.00416.76
7.2.330.0100.01016.71
7.2.320.0170.00316.84
7.2.310.0160.00416.73
7.2.300.0170.00716.73
7.2.290.0090.01916.96
7.2.260.0060.01515.10
7.2.250.0130.00815.19
7.2.240.0120.00715.14
7.2.230.0020.01415.30
7.2.220.0080.01015.20
7.2.210.0050.00915.20
7.2.200.0060.00715.09
7.2.190.0080.00915.13
7.2.180.0050.00915.28
7.2.170.0070.01115.25
7.2.160.0000.01515.04
7.2.150.0120.00617.15
7.2.140.0000.01917.11
7.2.130.0090.00617.10
7.2.120.0100.00417.10
7.2.110.0050.00816.93
7.2.100.0070.00617.09
7.2.90.0050.01217.08
7.2.80.0080.00916.79
7.2.70.0100.00817.11
7.2.60.0150.00516.99
7.2.50.0070.00817.17
7.2.40.0090.01117.07
7.2.30.0070.01117.15
7.2.20.0060.00917.08
7.2.10.0100.00817.05
7.2.00.0070.00717.90
7.1.330.0040.01016.12
7.1.320.0050.00615.88
7.1.310.0070.00615.86
7.1.300.0090.00816.05
7.1.290.0040.01115.81
7.1.280.0060.00916.16
7.1.270.0100.00715.87
7.1.260.0090.00816.06
7.1.250.0060.00816.03
7.1.240.0070.00716.05
7.1.230.0070.01115.89
7.1.220.0070.00416.13
7.1.210.0090.00315.89
7.1.200.0060.01316.09
7.1.190.0070.01015.79
7.1.180.0060.00315.91
7.1.170.0040.00815.89
7.1.160.0120.00615.82
7.1.150.0030.01016.01
7.1.140.0000.01515.86
7.1.130.0040.01115.93
7.1.120.0090.00416.09
7.1.110.0000.01015.75
7.1.100.0050.01117.19
7.1.90.0060.00915.67
7.1.80.0000.01215.80
7.1.70.0050.00716.77
7.1.60.0030.01517.98
7.1.50.0130.00716.55
7.1.40.0060.00916.07
7.1.30.0100.00316.19
7.1.20.0120.00315.84
7.1.10.0030.01315.84
7.1.00.0090.03719.21
7.0.330.0060.00615.86
7.0.320.0030.00915.47
7.0.310.0040.01415.59
7.0.300.0040.00415.67
7.0.290.0000.01615.62
7.0.280.0100.00415.79
7.0.270.0090.00015.34
7.0.260.0100.00715.52
7.0.250.0000.01515.18
7.0.240.0030.01015.27
7.0.230.0080.00315.40
7.0.220.0040.01115.62
7.0.210.0060.00915.57
7.0.200.0080.00616.21
7.0.190.0040.01215.71
7.0.180.0060.00915.59
7.0.170.0070.00715.82
7.0.160.0100.00715.65
7.0.150.0090.00915.79
7.0.140.0020.04418.80
7.0.130.0060.00915.74
7.0.120.0030.01315.44
7.0.110.0120.00615.70
7.0.100.0000.01215.74
7.0.90.0090.00915.76
7.0.80.0040.00715.74
7.0.70.0030.01215.54
7.0.60.0090.02717.73
7.0.50.0050.04516.82
7.0.40.0080.03216.69
7.0.30.0150.03316.78
7.0.20.0170.04616.98
7.0.10.0160.04216.91
7.0.00.0080.02316.92
5.6.400.0040.01214.55
5.6.390.0060.00914.02
5.6.380.0090.00614.39
5.6.370.0060.01314.51
5.6.360.0040.00814.32
5.6.350.0040.01414.03
5.6.340.0000.00914.38
5.6.330.0060.00314.72
5.6.320.0120.00014.47
5.6.310.0090.00914.00
5.6.300.0070.00714.51
5.6.290.0030.00714.30
5.6.280.0030.04517.81
5.6.270.0000.01414.52
5.6.260.0060.00914.63
5.6.250.0030.01414.45
5.6.240.0070.00714.17
5.6.230.0030.01014.22
5.6.220.0070.01014.53
5.6.210.0080.04717.47
5.6.200.0050.04716.33
5.6.190.0080.04617.33
5.6.180.0070.04517.43
5.6.170.0180.03017.30
5.6.160.0090.03717.56
5.6.150.0050.02416.29
5.6.140.0080.04016.23
5.6.130.0070.04316.34
5.6.120.0050.03617.85
5.6.110.0070.04017.63
5.6.100.0060.03317.51
5.6.90.0020.02717.62
5.6.80.0060.02317.34
5.6.70.1750.02617.29
5.6.60.0030.00914.07
5.6.50.0030.01014.50
5.6.40.0110.00414.11
5.6.30.0060.00914.22
5.6.20.0040.01114.46
5.6.10.0130.00314.34
5.6.00.0060.00614.39
5.5.380.0070.01014.64
5.5.370.0060.00714.33
5.5.360.0070.01014.63
5.5.350.0050.04717.30
5.5.340.0050.02516.05
5.5.330.0090.03317.21
5.5.320.0070.02717.25
5.5.310.0190.02017.33
5.5.300.0080.02316.22
5.5.290.0050.03516.11
5.5.280.0070.02517.72
5.5.270.0080.03417.67
5.5.260.0050.03017.64
5.5.250.0080.04517.55
5.5.240.0110.03417.19
5.5.230.0030.00914.34
5.5.220.0000.00914.27
5.5.210.0000.01414.00
5.5.200.0030.00914.27
5.5.190.0030.01014.07
5.5.180.0070.01114.36
5.5.170.0110.00014.40
5.5.160.0040.01114.25
5.5.150.0030.01014.13
5.5.140.0030.01013.89
5.5.130.0090.00014.25
5.5.120.0060.00914.31
5.5.110.0040.00814.05
5.5.100.0100.00314.41
5.5.90.0000.00914.10
5.5.80.0070.00714.10
5.5.70.0090.00614.43
5.5.60.0050.00514.32
5.5.50.0060.01514.09
5.5.40.0040.01214.25
5.5.30.0130.00614.35
5.5.20.0090.00914.23
5.5.10.0070.00714.36
5.5.00.0100.01014.22
5.4.450.0140.02515.73
5.4.440.0230.02715.59
5.4.430.0370.02215.69
5.4.420.0160.02115.67
5.4.410.0210.02115.60
5.4.400.0350.02515.35
5.4.390.0080.02915.37
5.4.380.0280.02615.28
5.4.370.0180.03915.21
5.4.360.0250.03715.30
5.4.350.0200.03015.19
5.4.340.0220.03015.26
5.4.330.0020.00511.93
5.4.320.0030.02512.19
5.4.310.0060.02512.19
5.4.300.0090.02812.20
5.4.290.0070.02512.19
5.4.280.0060.02212.14
5.4.270.0020.02812.14
5.4.260.0070.02412.14
5.4.250.0070.02612.14
5.4.240.0050.03012.14
5.4.230.0090.02812.14
5.4.220.0060.03112.14
5.4.210.0080.03012.14
5.4.200.0070.02612.14
5.4.190.0040.02712.13
5.4.180.0060.02212.13
5.4.170.0100.01912.14
5.4.160.0060.02312.14
5.4.150.0100.02012.13
5.4.140.0040.02611.97
5.4.130.0020.02611.97
5.4.120.0040.02311.95
5.4.110.0070.02411.95
5.4.100.0090.02611.95
5.4.90.0100.02611.95
5.4.80.0080.02811.95
5.4.70.0060.03011.95
5.4.60.0050.02411.95
5.4.50.0060.02211.95
5.4.40.0090.01711.94
5.4.30.0070.02311.94
5.4.20.0040.02311.94
5.4.10.0080.02111.94
5.4.00.0060.02211.68
5.3.290.0040.02312.36
5.3.280.0050.02212.32
5.3.270.0050.02112.33
5.3.260.0030.02312.32
5.3.250.0030.02312.32
5.3.240.0070.02312.32
5.3.230.0050.02212.32
5.3.220.0050.02112.30
5.3.210.0030.02512.30
5.3.200.0050.02212.30
5.3.190.0020.02612.30
5.3.180.0060.01912.30
5.3.170.0050.02312.30
5.3.160.0010.02312.30
5.3.150.0050.02312.30
5.3.140.0080.02112.29
5.3.130.0050.02612.29
5.3.120.0030.02312.29
5.3.110.0020.02512.29
5.3.100.0020.02412.02
5.3.90.0050.02312.00
5.3.80.0060.01712.00
5.3.70.0060.02312.00
5.3.60.0060.02112.00
5.3.50.0060.02311.96
5.3.40.0060.02111.96
5.3.30.0030.02011.94
5.3.20.0030.02111.83
5.3.10.0030.02111.81
5.3.00.0030.02211.80
5.2.170.0020.0349.18
5.2.160.0060.0289.18
5.2.150.0030.0319.18
5.2.140.0060.0289.18
5.2.130.0070.0279.14
5.2.120.0050.0299.14
5.2.110.0090.0259.15
5.2.100.0030.0309.14
5.2.90.0030.0319.14
5.2.80.0030.0349.14
5.2.70.0070.0329.14
5.2.60.0070.0359.10
5.2.50.0040.0429.06
5.2.40.0050.0339.04
5.2.30.0050.0299.02
5.2.20.0060.0279.00
5.2.10.0020.0318.93
5.2.00.0070.0348.79
5.1.60.0020.0328.07
5.1.50.0030.0278.06
5.1.40.0050.0288.05
5.1.30.0060.0288.39
5.1.20.0060.0258.41
5.1.10.0040.0268.14
5.1.00.0030.0278.14
5.0.50.0050.0196.63
5.0.40.0030.0196.49
5.0.30.0030.0326.29
5.0.20.0050.0176.27
5.0.10.0040.0196.25
5.0.00.0030.0316.24
4.4.90.0050.0144.78
4.4.80.0010.0174.75
4.4.70.0030.0154.75
4.4.60.0020.0164.75
4.4.50.0020.0164.77
4.4.40.0020.0324.71
4.4.30.0030.0154.76
4.4.20.0020.0164.85
4.4.10.0040.0154.84
4.4.00.0020.0284.76
4.3.110.0070.0184.67
4.3.100.0040.0214.67
4.3.90.0030.0144.64
4.3.80.0020.0254.58
4.3.70.0020.0154.63
4.3.60.0050.0134.62
4.3.50.0030.0154.63
4.3.40.0040.0234.54
4.3.30.0030.0153.28
4.3.20.0030.0163.26
4.3.10.0020.0153.22
4.3.00.0070.01312.34

preferences:
55.53 ms | 400 KiB | 5 Q