3v4l.org

run code in 300+ PHP versions simultaneously
<?php $addr = "http://www.example.com/?pk_lol=VAgin&utm_campaign=printemps&utm_medium=e-mail&utm_source=newsletter1&utm_content=lien-en-haut"; $pattern ="/^(utm_source=)?(&)/i"; preg_match($pattern, $addr, $result); echo $result[0]."\n"; // repérer le nom de l'hôte dans l'URL preg_match('@^(?:http://)?([^/]+)@i', "http://www.php.net/index.html", $matches); $host = $matches[0]; echo "OOoo: {$host}\n"; // repérer les deux derniers segments du nom de l'hôte preg_match('/[^.]+\.[^.]+$/', $host, $matches); echo "Le nom de domaine est : {$matches[0]}\n"; ?> echo $addr;

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.0150.00016.88
8.3.50.0000.01618.25
8.3.40.0120.00319.10
8.3.30.0120.00319.02
8.3.20.0090.00020.16
8.3.10.0000.00823.48
8.3.00.0080.00019.19
8.2.180.0060.00916.75
8.2.170.0070.00722.96
8.2.160.0140.00320.22
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.02
8.2.110.0030.00722.21
8.2.100.0000.01218.22
8.2.90.0060.00319.18
8.2.80.0000.00818.00
8.2.70.0040.00717.88
8.2.60.0060.00317.93
8.2.50.0030.00618.07
8.2.40.0000.00820.20
8.2.30.0040.00418.29
8.2.20.0030.00517.97
8.2.10.0040.00418.03
8.2.00.0000.00817.84
8.1.270.0000.00823.96
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.83
8.1.230.0090.00319.08
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0060.00617.36
8.1.190.0040.00417.50
8.1.180.0080.00018.10
8.1.170.0030.00518.71
8.1.160.0070.00022.07
8.1.150.0050.00318.72
8.1.140.0080.00017.60
8.1.130.0030.00317.78
8.1.120.0000.00817.66
8.1.110.0040.00417.54
8.1.100.0000.00817.61
8.1.90.0040.00417.52
8.1.80.0120.00017.51
8.1.70.0040.00417.50
8.1.60.0040.00417.71
8.1.50.0040.00417.75
8.1.40.0050.00317.59
8.1.30.0000.00817.80
8.1.20.0000.00817.76
8.1.10.0090.00017.73
8.1.00.0000.00817.68
8.0.300.0040.00418.77
8.0.290.0050.00217.05
8.0.280.0050.00318.52
8.0.270.0000.00717.29
8.0.260.0000.00917.35
8.0.250.0070.00017.09
8.0.240.0070.00017.13
8.0.230.0040.00417.04
8.0.220.0040.00416.98
8.0.210.0000.00716.99
8.0.200.0050.00217.06
8.0.190.0040.00417.07
8.0.180.0040.00417.09
8.0.170.0030.00517.15
8.0.160.0050.00316.98
8.0.150.0050.00217.02
8.0.140.0000.00816.96
8.0.130.0030.00313.52
8.0.120.0000.00817.11
8.0.110.0020.00517.09
8.0.100.0040.00416.93
8.0.90.0040.00416.99
8.0.80.0110.00416.99
8.0.70.0000.00717.07
8.0.60.0050.00317.15
8.0.50.0000.00817.11
8.0.30.0110.00817.11
8.0.20.0100.01117.48
8.0.10.0060.00316.98
8.0.00.0060.01216.93
7.4.330.0000.00715.00
7.4.320.0030.00316.76
7.4.300.0030.00316.64
7.4.290.0000.00816.65
7.4.280.0070.00016.75
7.4.270.0080.00016.72
7.4.260.0000.00716.71
7.4.250.0000.00716.73
7.4.240.0030.00416.72
7.4.230.0080.00016.79
7.4.220.0130.01016.62
7.4.210.0050.00916.68
7.4.200.0070.00016.55
7.4.190.0000.00716.72
7.4.160.0030.01216.70
7.4.150.0100.01017.40
7.4.140.0030.01517.86
7.4.130.0070.01016.72
7.4.120.0070.01216.72
7.4.110.0090.01316.73
7.4.100.0040.01416.71
7.4.90.0030.01616.53
7.4.80.0120.00619.39
7.4.70.0030.01716.80
7.4.60.0040.01516.89
7.4.50.0020.00216.72
7.4.40.0100.00716.64
7.4.30.0100.00616.66
7.4.10.0030.01715.39
7.4.00.0080.00815.09
7.3.330.0000.00513.23
7.3.320.0000.00713.25
7.3.310.0040.00416.53
7.3.300.0030.00316.47
7.3.290.0150.00416.47
7.3.280.0100.00916.49
7.3.270.0060.01217.40
7.3.260.0100.01416.64
7.3.250.0060.01316.63
7.3.240.0100.00716.59
7.3.230.0100.01316.63
7.3.210.0070.01016.75
7.3.200.0070.01419.39
7.3.190.0110.01116.78
7.3.180.0100.01016.40
7.3.170.0100.00616.76
7.3.160.0090.01516.62
7.3.130.0170.00315.09
7.3.120.0100.00315.03
7.3.110.0070.01015.12
7.3.100.0070.00715.37
7.3.90.0030.00915.21
7.3.80.0000.00814.71
7.3.70.0080.00614.90
7.3.60.0030.01315.08
7.3.50.0000.01714.92
7.3.40.0110.00014.87
7.3.30.0070.00715.00
7.3.20.0130.00717.00
7.3.10.0160.00616.82
7.3.00.0080.01116.59
7.2.330.0060.01616.77
7.2.320.0120.00616.98
7.2.310.0150.00316.72
7.2.300.0030.01416.58
7.2.290.0130.01016.74
7.2.260.0090.00915.34
7.2.250.0110.00815.29
7.2.240.0090.00915.29
7.2.230.0060.00915.22
7.2.220.0070.01115.34
7.2.210.0070.01115.13
7.2.200.0100.00315.16
7.2.190.0030.01415.31
7.2.180.0030.00715.13
7.2.170.0040.00415.44
7.2.160.0120.00615.38
7.2.150.0060.01017.23
7.2.140.0030.01217.20
7.2.130.0070.01116.99
7.2.120.0060.00916.87
7.2.110.0150.00217.04
7.2.100.0100.01016.91
7.2.90.0080.01216.81
7.2.80.0120.00917.11
7.2.70.0090.01117.00
7.2.60.0100.00916.90
7.2.50.0060.01517.01
7.2.40.0060.01516.74
7.2.30.0120.00916.90
7.2.20.0140.00816.65
7.2.10.0080.00816.97
7.2.00.0080.00917.97
7.1.330.0030.01015.95
7.1.320.0030.01316.08
7.1.310.0030.00616.08
7.1.300.0070.00715.94
7.1.290.0030.01015.95
7.1.280.0000.01016.00
7.1.270.0040.01215.60
7.1.260.0070.00715.68
7.1.250.0090.00715.95
7.1.240.0030.00715.96
7.1.230.0000.01815.67
7.1.220.0040.01416.08
7.1.210.0000.01215.69
7.1.200.0100.00515.90
7.1.190.0030.01015.75
7.1.180.0030.01015.73
7.1.170.0070.00715.60
7.1.160.0140.00015.93
7.1.150.0030.01016.10
7.1.140.0030.01216.04
7.1.130.0060.00916.07
7.1.120.0040.01116.12
7.1.110.0000.01116.10
7.1.100.0030.00917.21
7.1.90.0030.00716.04
7.1.80.0070.00716.05
7.1.70.0020.00716.83
7.1.60.0060.01417.68
7.1.50.0050.00916.64
7.1.40.0070.00715.75
7.1.30.0030.00616.11
7.1.20.0070.01015.93
7.1.10.0000.01316.10
7.1.00.0090.03919.21
7.0.330.0060.00615.51
7.0.320.0030.01315.46
7.0.310.0100.00315.30
7.0.300.0030.00715.72
7.0.290.0030.00615.52
7.0.280.0030.00715.44
7.0.270.0070.00715.59
7.0.260.0040.01115.39
7.0.250.0070.00715.66
7.0.240.0100.00315.84
7.0.230.0080.00815.59
7.0.220.0070.00715.62
7.0.210.0030.00915.80
7.0.200.0050.00516.38
7.0.190.0070.00715.67
7.0.180.0080.00815.70
7.0.170.0100.00315.75
7.0.160.0080.00315.45
7.0.150.0000.01215.21
7.0.140.0030.04118.94
7.0.130.0100.00615.32
7.0.120.0030.01215.61
7.0.110.0120.00315.57
7.0.100.0100.02517.86
7.0.90.0330.03517.86
7.0.80.0370.04717.81
7.0.70.0270.03217.97
7.0.60.0350.04117.70
7.0.50.0300.03117.85
7.0.40.0070.04316.97
7.0.30.0090.04216.86
7.0.20.0070.04216.85
7.0.10.0030.04016.93
7.0.00.0050.04016.94
5.6.400.0030.01314.74
5.6.390.0000.00914.57
5.6.380.0100.00714.69
5.6.370.0030.01014.47
5.6.360.0030.01014.47
5.6.350.0080.00414.26
5.6.340.0080.00314.46
5.6.330.0030.01014.61
5.6.320.0060.00814.49
5.6.310.0070.00714.49
5.6.300.0070.00714.29
5.6.290.0070.00414.24
5.6.280.0050.04117.73
5.6.270.0030.01314.46
5.6.260.0030.01314.48
5.6.250.0060.04517.41
5.6.240.0090.04517.50
5.6.230.0070.02717.41
5.6.220.0050.04717.49
5.6.210.0030.03017.49
5.6.200.0080.04217.71
5.6.190.0080.04217.67
5.6.180.0070.04217.82
5.6.170.0000.03517.63
5.6.160.0050.02617.61
5.6.150.0020.04017.69
5.6.140.0050.04517.89
5.6.130.0150.03717.69
5.6.120.0080.03317.70
5.6.110.0050.04717.65
5.6.100.0050.02817.70
5.6.90.0050.04217.62
5.6.80.0090.02317.35
5.6.70.0050.04117.21
5.6.60.0110.02317.36
5.6.50.0070.04017.27
5.6.40.0050.04517.31
5.6.30.0130.03517.31
5.6.20.0100.03817.41
5.6.10.0080.03317.53
5.6.00.0070.03617.42
5.5.380.0050.03817.52
5.5.370.0080.03517.41
5.5.360.0130.03717.26
5.5.350.0090.04017.41
5.5.340.0050.04917.64
5.5.330.0020.04117.69
5.5.320.0030.03917.44
5.5.310.0090.03917.62
5.5.300.0050.04517.63
5.5.290.0050.04217.54
5.5.280.0050.04617.70
5.5.270.0080.04517.67
5.5.260.0090.02817.52
5.5.250.0120.03517.55
5.5.240.0110.03517.25
5.5.230.0020.04217.31
5.5.220.0030.04617.38
5.5.210.0080.04117.39
5.5.200.0050.04217.25
5.5.190.0030.04717.34
5.5.180.0030.04217.19
5.5.170.0100.00714.24
5.5.160.0050.04017.30
5.5.150.0070.04217.34
5.5.140.0130.03517.16
5.5.130.0110.03717.35
5.5.120.0070.03517.42
5.5.110.0080.04217.22
5.5.100.0060.02517.16
5.5.90.0050.03117.25
5.5.80.0090.03917.19
5.5.70.0050.03017.02
5.5.60.0090.04217.07
5.5.50.0030.04617.05
5.5.40.0070.04217.02
5.5.30.0060.04617.05
5.5.20.0050.04017.19
5.5.10.0060.02317.22
5.5.00.0080.03917.22
5.4.450.0080.04215.21
5.4.440.0050.04215.09
5.4.430.0080.04015.21
5.4.420.0060.04215.25
5.4.410.0100.03315.05
5.4.400.0020.04415.05
5.4.390.0030.03614.92
5.4.380.0030.04514.94
5.4.370.0050.03614.99
5.4.360.0070.03614.87
5.4.350.0090.03815.04
5.4.340.0030.04815.26
5.4.330.0030.00910.76
5.4.320.0050.04115.11
5.4.310.0030.04315.09
5.4.300.0080.03815.19
5.4.290.0080.03114.88
5.4.280.0110.03814.91
5.4.270.0080.03915.06
5.4.260.0030.04414.92
5.4.250.0050.04215.01
5.4.240.0080.03714.90
5.4.230.0010.04315.17
5.4.220.0070.04015.02
5.4.210.0050.04015.06
5.4.200.0070.03715.10
5.4.190.0070.03914.96
5.4.180.0020.03014.98
5.4.170.0030.02515.08
5.4.160.0050.03815.00
5.4.150.0100.03814.94
5.4.140.0050.04313.86
5.4.130.0080.03613.88
5.4.120.0030.04113.81
5.4.110.0060.04013.68
5.4.100.0070.03813.76
5.4.90.0070.03313.79
5.4.80.0050.03313.69
5.4.70.0030.03913.70
5.4.60.0020.04013.64
5.4.50.0100.03213.65
5.4.40.0050.02613.71
5.4.30.0030.04013.68
5.4.20.0050.04013.62
5.4.10.0050.03513.63
5.4.00.0050.02413.44
5.3.290.0100.03812.62
5.3.280.0070.03812.50
5.3.270.0110.03812.49
5.3.260.0030.02612.57
5.3.250.0090.03812.52
5.3.240.0000.03412.46
5.3.230.0050.04012.55
5.3.220.0050.04112.48
5.3.210.0030.04112.45
5.3.200.0050.03812.51
5.3.190.0080.03512.52
5.3.180.0070.03812.51
5.3.170.0080.03712.55
5.3.160.0130.02212.46
5.3.150.0020.03612.57
5.3.140.0080.03812.51
5.3.130.0000.04312.52
5.3.120.0100.03712.51
5.3.110.0030.02812.46
5.3.100.0100.03512.41
5.3.90.0020.03912.42
5.3.80.0070.03712.43
5.3.70.0070.03812.36
5.3.60.0050.04212.38
5.3.50.0080.02012.36
5.3.40.0080.03512.40
5.3.30.0060.03312.38
5.3.20.0070.02712.37
5.3.10.0070.03512.36
5.3.00.0070.03412.34
5.2.170.0030.06714.32
5.2.160.0030.06014.32
5.2.150.0030.04014.32
5.2.140.0070.05714.32
5.2.130.0000.05714.32
5.2.120.0030.03714.32
5.2.110.0130.05714.32
5.2.100.0000.03714.32
5.2.90.0030.04714.32
5.2.80.0070.05314.32
5.2.70.0070.05714.32
5.2.60.0000.06314.32
5.2.50.0070.06014.32
5.2.40.0070.05314.32
5.2.30.0000.05314.32
5.2.20.0030.06314.32
5.2.10.0030.04714.32
5.2.00.0070.05014.32
5.1.60.0000.04314.32
5.1.50.0070.03714.32
5.1.40.0030.05014.32
5.1.30.0030.04314.32
5.1.20.0030.05714.32
5.1.10.0000.04014.32
5.1.00.0070.04714.32
5.0.50.0030.04014.32
5.0.40.0100.03714.32
5.0.30.0030.06014.32
5.0.20.0030.04314.32
5.0.10.0000.03014.32
5.0.00.0030.03314.32
4.4.90.0100.02014.32
4.4.80.0000.02314.32
4.4.70.0070.03314.32
4.4.60.0030.03714.32
4.4.50.0030.02314.32
4.4.40.0000.05014.32
4.4.30.0000.03314.32
4.4.20.0000.03314.32
4.4.10.0070.03014.32
4.4.00.0100.02714.32
4.3.110.0030.03314.32
4.3.100.0000.02714.32
4.3.90.0030.03314.32
4.3.80.0070.05314.32
4.3.70.0000.03714.32
4.3.60.0030.03314.32
4.3.50.0000.03714.32
4.3.40.0000.05314.32
4.3.30.0000.03714.32
4.3.20.0100.03014.32
4.3.10.0000.03314.32
4.3.00.0070.02314.32

preferences:
59.87 ms | 400 KiB | 5 Q