3v4l.org

run code in 300+ PHP versions simultaneously
<?php function nct_modifier_merge_url_args($url, $new_arguments) { if(empty($url)) { return $url; } $adjusted = FALSE; // workaround for https://php.net/manual/en/function.parse-url.php#example-4524 if (PHP_VERSION_ID <= 50407 && substr($url, 0, 2) == '//') { $url = 'http:' . $url; $adjusted = TRUE; } $parsed_url = parse_url($url); if ($adjusted) { unset($parsed_url['scheme']); } parse_str((isset($parsed_url['query'])?$parsed_url['query']:''), $args); parse_str($new_arguments,$newargs); $args = array_merge($args,$newargs); $query = ''; if(count($args)) { foreach ($args as $k => $v) { $query .= urlencode($k).'='.urlencode($v).'&'; } $query = substr($query, 0, -1); } if (!isset($parsed_url['scheme'])) { $url = '//'; } else { $url = $parsed_url['scheme'] . '://'; } $url .= ((isset($parsed_url['host']) && $parsed_url['host'])?$parsed_url['host']:$_SERVER['SERVER_NAME']). ((isset($parsed_url['path']) && $parsed_url['path'])?$parsed_url['path']:'/'). ($query?'?'.$query:''). ((isset($parsed_url['fragment']) && $parsed_url['fragment'])?'#'.$parsed_url['fragment']:''); return $url; } echo nct_modifier_merge_url_args('//zpravy.aktualne.cz/?utm_source=centrumHP&utm_medium=dynamicleadbox','channel_id=hot_searches-HPA&hot=1&client_id=centrum-atlas-ssfs');

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.0090.00916.63
8.3.50.0110.00821.20
8.3.40.0120.00318.79
8.3.30.0140.00019.08
8.3.20.0040.00420.21
8.3.10.0040.00423.65
8.3.00.0080.00019.79
8.2.180.0180.00616.88
8.2.170.0160.00319.09
8.2.160.0100.00722.96
8.2.150.0070.00724.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00419.38
8.2.110.0000.00821.99
8.2.100.0110.00018.09
8.2.90.0110.00019.13
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0050.00318.04
8.2.50.0080.00018.07
8.2.40.0040.00418.26
8.2.30.0040.00418.16
8.2.20.0000.00817.84
8.2.10.0000.00818.06
8.2.00.0030.00618.02
8.1.280.0130.00325.92
8.1.270.0090.00020.38
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0100.00023.84
8.1.230.0090.00319.11
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0070.00317.35
8.1.190.0030.00617.11
8.1.180.0030.00518.10
8.1.170.0050.00318.50
8.1.160.0040.00422.11
8.1.150.0040.00418.79
8.1.140.0000.00717.49
8.1.130.0040.00717.86
8.1.120.0060.00317.46
8.1.110.0030.00617.34
8.1.100.0030.00417.40
8.1.90.0040.00417.41
8.1.80.0040.00417.46
8.1.70.0040.00417.50
8.1.60.0060.00317.65
8.1.50.0000.00817.45
8.1.40.0000.00817.56
8.1.30.0040.00417.72
8.1.20.0090.00017.63
8.1.10.0040.00417.43
8.1.00.0030.00517.54
8.0.300.0040.00418.77
8.0.290.0000.00716.88
8.0.280.0070.00018.42
8.0.270.0000.00717.23
8.0.260.0000.00617.34
8.0.250.0080.00017.07
8.0.240.0050.00217.05
8.0.230.0000.00717.08
8.0.220.0070.00016.98
8.0.210.0030.00317.00
8.0.200.0030.00316.96
8.0.190.0060.00617.07
8.0.180.0050.00316.97
8.0.170.0040.00417.03
8.0.160.0000.00717.12
8.0.150.0000.00717.03
8.0.140.0040.00416.94
8.0.130.0070.00013.41
8.0.120.0000.00816.92
8.0.110.0060.00317.04
8.0.100.0040.00416.81
8.0.90.0060.00316.89
8.0.80.0090.00916.98
8.0.70.0050.00216.92
8.0.60.0040.00417.02
8.0.50.0020.00516.99
8.0.30.0130.00717.04
8.0.20.0120.01017.40
8.0.10.0070.00017.02
8.0.00.0050.01416.83
7.4.330.0060.00015.15
7.4.320.0040.00416.44
7.4.300.0040.00416.54
7.4.290.0030.00316.46
7.4.280.0000.00716.61
7.4.270.0000.00716.47
7.4.260.0090.00016.46
7.4.250.0070.00016.55
7.4.240.0020.00616.51
7.4.230.0030.00316.73
7.4.220.0040.01516.70
7.4.210.0080.00616.43
7.4.200.0030.00316.39
7.4.160.0110.01116.39
7.4.150.0240.02017.40
7.4.140.0180.00417.86
7.4.130.0110.01016.61
7.4.120.0140.00516.58
7.4.110.0180.00416.59
7.4.100.0030.01716.45
7.4.90.0070.01016.52
7.4.80.0110.00619.39
7.4.70.0120.00616.65
7.4.60.0080.00816.45
7.4.50.0020.00216.62
7.4.40.0100.00616.46
7.4.30.0070.01016.77
7.4.00.0090.00615.20
7.3.330.0000.00513.41
7.3.320.0000.00513.41
7.3.310.0030.00316.48
7.3.300.0030.00316.45
7.3.290.0090.00516.38
7.3.280.0130.00416.35
7.3.270.0090.00917.40
7.3.260.0150.00916.66
7.3.250.0130.00616.39
7.3.240.0110.00616.49
7.3.230.0100.00716.64
7.3.210.0060.01016.54
7.3.200.0160.00019.39
7.3.190.0090.01216.69
7.3.180.0130.00316.63
7.3.170.0060.01616.36
7.3.160.0030.01316.35
7.3.10.0040.01116.50
7.3.00.0040.01116.38
7.2.330.0120.00616.80
7.2.320.0030.01716.82
7.2.310.0060.01416.77
7.2.300.0090.00916.46
7.2.290.0090.00916.74
7.2.130.0070.00717.03
7.2.120.0110.00416.67
7.2.110.0060.00617.10
7.2.100.0110.00316.89
7.2.90.0140.00316.85
7.2.80.0070.01017.04
7.2.70.0070.00316.93
7.2.60.0070.01116.52
7.2.50.0070.01016.75
7.2.40.0060.01016.98
7.2.30.0070.00816.88
7.2.20.0030.01217.00
7.2.10.0070.01016.75
7.2.00.0070.01118.09
7.1.250.0100.00315.96
7.1.200.0080.00315.97
7.1.100.0060.00618.27
7.1.70.0000.01317.20
7.1.60.0030.02119.86
7.1.50.0060.01917.11
7.1.00.0130.06322.44
7.0.200.0390.00014.41
7.0.100.0070.08019.95
7.0.90.0100.08020.15
7.0.80.0070.04720.04
7.0.70.0130.06019.88
7.0.60.0000.06019.97
7.0.50.0100.08320.37
7.0.40.0130.08320.05
7.0.30.0030.08020.14
7.0.20.0170.08020.14
7.0.10.0070.04720.13
7.0.00.0130.07320.12
5.6.280.0070.06721.11
5.6.250.0070.07320.73
5.6.240.0000.05720.70
5.6.230.0030.08720.69
5.6.220.0170.07320.50
5.6.210.0100.07320.57
5.6.200.0130.08021.05
5.6.190.0070.07321.18
5.6.180.0070.08321.04
5.6.170.0000.09021.02
5.6.160.0070.05021.05
5.6.150.0070.07721.00
5.6.140.0030.08321.11
5.6.130.0070.08021.10
5.6.120.0170.07720.95
5.6.110.0030.08321.08
5.6.100.0230.06321.02
5.6.90.0170.07020.99
5.6.80.0070.04720.44
5.6.70.0070.07720.52
5.6.60.0170.07320.37
5.6.50.0100.04320.31
5.6.40.0170.07320.41
5.6.30.0070.07720.39
5.6.20.0100.04720.46
5.6.10.0070.07720.31
5.6.00.0170.07020.46
5.5.380.0030.08720.33
5.5.370.0000.04320.35
5.5.360.0100.07320.39
5.5.350.0130.07320.45
5.5.340.0070.08020.64
5.5.330.0030.05020.87
5.5.320.0030.08720.91
5.5.310.0100.04720.90
5.5.300.0070.08020.87
5.5.290.0100.08720.65
5.5.280.0070.05020.81
5.5.270.0100.08720.88
5.5.260.0200.06020.81
5.5.250.0170.07320.66
5.5.240.0070.08020.13
5.5.230.0070.06320.29
5.5.220.0100.08020.25
5.5.210.0070.07320.03
5.5.200.0100.07720.20
5.5.190.0070.05020.28
5.5.180.0100.07720.23
5.5.160.0170.07020.12
5.5.150.0100.07320.20
5.5.140.0230.06020.27
5.5.130.0000.06320.12
5.5.120.0030.05720.04
5.5.110.0130.04720.21
5.5.100.0070.07720.11
5.5.90.0100.07720.17
5.5.80.0200.07320.17
5.5.70.0100.07319.97
5.5.60.0070.04320.07
5.5.50.0130.06020.09
5.5.40.0000.08320.07
5.5.30.0070.08320.13
5.5.20.0130.07320.07
5.5.10.0130.07019.99
5.5.00.0130.06020.04
5.4.450.0130.07319.58
5.4.440.0130.07719.51
5.4.430.0100.07719.50
5.4.420.0130.07019.44
5.4.410.0030.08019.33
5.4.400.0100.07719.17
5.4.390.0070.04718.88
5.4.380.0030.08318.85
5.4.370.0170.06718.94
5.4.360.0030.08319.16
5.4.350.0170.06318.87
5.4.340.0030.05718.87
5.4.320.0030.06719.04
5.4.310.0130.07319.19
5.4.300.0100.06719.02
5.4.290.0070.07719.04
5.4.280.0100.06319.09
5.4.270.0170.06319.18
5.4.260.0170.06719.14
5.4.250.0030.08319.04
5.4.240.0130.07019.13
5.4.230.0070.08319.20
5.4.220.0170.06719.22
5.4.210.0100.07718.92
5.4.200.0130.06719.13
5.4.190.0030.08019.17
5.4.180.0130.06719.19
5.4.170.0130.06018.88
5.4.160.0070.05319.11
5.4.150.0030.07319.01
5.4.140.0000.07316.50
5.4.130.0030.06716.45
5.4.120.0130.05716.45
5.4.110.0030.07016.43
5.4.100.0100.07316.49
5.4.90.0070.06716.47
5.4.80.0100.07716.49
5.4.70.0130.06716.48
5.4.60.0100.06716.47
5.4.50.0100.06716.45
5.4.40.0100.03716.42
5.4.30.0030.04316.39
5.4.20.0100.06316.29
5.4.10.0230.05316.35
5.4.00.0070.07715.85
5.3.290.0100.07014.77
5.3.280.0000.06314.66
5.3.270.0070.07714.63
5.3.260.0100.07314.67
5.3.250.0100.07014.63
5.3.240.0100.07314.61
5.3.230.0200.03014.58
5.3.220.0030.07714.56
5.3.210.0100.07314.57
5.3.200.0130.05314.70
5.3.190.0100.08014.56
5.3.180.0030.07314.55
5.3.170.0100.07014.62
5.3.160.0100.06714.55
5.3.150.0070.07714.71
5.3.140.0030.07714.59
5.3.130.0100.07314.65
5.3.120.0070.07314.49
5.3.110.0030.08014.52
5.3.100.0030.08014.05
5.3.90.0070.04014.01
5.3.80.0100.07313.94
5.3.70.0030.05014.02
5.3.60.0100.06014.00
5.3.50.0070.06313.86
5.3.40.0100.03314.02
5.3.30.0070.07013.91
5.3.20.0100.04713.73
5.3.10.0000.07713.68
5.3.00.0100.07313.72
5.2.170.0000.04713.68
5.2.160.0000.03013.68
5.2.150.0100.05713.68
5.2.140.0070.06013.68
5.2.130.0030.06313.68
5.2.120.0070.06013.68
5.2.110.0000.06713.68
5.2.100.0000.06713.68
5.2.90.0000.03713.68
5.2.80.0100.06013.68
5.2.70.0070.05713.68
5.2.60.0100.05713.68
5.2.50.0030.06313.68
5.2.40.0030.06313.68
5.2.30.0000.06013.68
5.2.20.0000.06713.68
5.2.10.0030.04013.68
5.2.00.0000.06713.68
5.1.60.0030.05313.68
5.1.50.0070.04313.68
5.1.40.0000.05013.68
5.1.30.0030.04713.68
5.1.20.0000.03313.68
5.1.10.0030.05013.68
5.1.00.0030.05713.68
5.0.50.0130.03713.68
5.0.40.0070.03013.68
5.0.30.0030.04013.68
5.0.20.0000.02713.68
5.0.10.0000.04713.68
5.0.00.0000.07013.68
4.4.90.0070.03313.68
4.4.80.0030.02013.68
4.4.70.0070.03713.68
4.4.60.0000.02313.68
4.4.50.0000.03713.68
4.4.40.0030.03013.68
4.4.30.0070.02313.68
4.4.20.0100.02013.68
4.4.10.0030.03313.68
4.4.00.0000.04013.68
4.3.110.0000.03713.68
4.3.100.0000.03713.68
4.3.90.0000.03713.68
4.3.80.0030.03013.68
4.3.70.0030.03313.68
4.3.60.0000.03313.68
4.3.50.0030.03313.68
4.3.40.0070.04313.68
4.3.30.0000.02013.68
4.3.20.0000.03713.68
4.3.10.0000.03013.68
4.3.00.0000.02713.68

preferences:
56.1 ms | 401 KiB | 5 Q