3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "https://m.naughtyappetite.com/oth.php?dynamicpage=all_1cm_universal_light_n&ver=1"; $urlParams = array( 'source', 'transfer_to', 'ban_rm', 'pop_rm', 'txt_rm', 'zoneid', 'userid', 'userId', 'ver', 't_uod', 't_umbr', 'email', 'emlTrack', 'key', 'uniqmessageId', 'open', 'transferSource', 'cmpn', 'loc', 'cross', 'crossMask', '_cbUrl', '_disAL', '_fData', 'utm_partner', 'clkid', 'clid', 'clbid', 'safeLP', 'campaigntype', 'redirectUrl', ); $queryString = ""; function getParam($key) { $url = "http://www.thirst-more.com/2207/campaign32813?safeLP=naughty&source=www.benaughty.com&transfer_to=naughtyappetite.com&ban_rm=000748865&zoneid=4661&userId=c078c5c84f7311e79a97441ea14ed80c&key=c7eee25af7c437abaf37c460b8d1f467&clid=927&clbid=33872&location=UKR&remType=Banner&targetSite=6747c8fb5b73abce100992b51af15eef"; $query = parse_url($url, PHP_URL_QUERY); parse_str($query, $params); return isset($params[$key]) ? $params[$key] : null; } $params = array_fill_keys($urlParams, ""); array_walk($params, function(&$item, $key){ $item = getParam($key); }); $params = array_filter($params); if (!empty($params)) { $queryString = http_build_query($params); } if (empty($queryString)) return $url; $pos = strrpos($url,"?"); die(var_dump($url . ( $pos === false ? "?" : "&" ) . $queryString, $queryString, $params));

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.0130.00616.75
8.3.50.0090.00616.35
8.3.40.0070.00719.02
8.3.30.0080.00818.79
8.3.20.0070.00320.41
8.3.10.0080.00021.83
8.3.00.0080.00019.13
8.2.180.0040.01118.54
8.2.170.0150.00022.96
8.2.160.0030.01020.39
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0050.00321.07
8.2.120.0040.00426.35
8.2.110.0070.00221.00
8.2.100.0080.00417.91
8.2.90.0040.00419.22
8.2.80.0050.00317.97
8.2.70.0030.00517.61
8.2.60.0000.00917.93
8.2.50.0080.00018.10
8.2.40.0000.00920.64
8.2.30.0040.00421.11
8.2.20.0000.00818.20
8.2.10.0050.00318.13
8.2.00.0050.00218.09
8.1.280.0040.01125.92
8.1.270.0050.00222.17
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00719.34
8.1.230.0090.00319.01
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.48
8.1.190.0040.00417.47
8.1.180.0050.00318.10
8.1.170.0060.00319.09
8.1.160.0040.00419.12
8.1.150.0070.00020.68
8.1.140.0030.00719.68
8.1.130.0040.00418.99
8.1.120.0000.00717.54
8.1.110.0050.00217.34
8.1.100.0080.00017.50
8.1.90.0040.00417.42
8.1.80.0040.00417.50
8.1.70.0000.00717.50
8.1.60.0060.00317.54
8.1.50.0000.00817.61
8.1.40.0000.00817.59
8.1.30.0040.00417.70
8.1.20.0000.00817.68
8.1.10.0040.00417.69
8.1.00.0000.00817.60
8.0.300.0070.00020.04
8.0.290.0030.00616.88
8.0.280.0030.00318.55
8.0.270.0000.00817.32
8.0.260.0000.00716.98
8.0.250.0000.00717.01
8.0.240.0040.00416.97
8.0.230.0070.00016.91
8.0.220.0000.00716.94
8.0.210.0000.00716.98
8.0.200.0040.00417.11
8.0.190.0050.00517.09
8.0.180.0030.00616.93
8.0.170.0000.00717.02
8.0.160.0030.00617.02
8.0.150.0040.00417.06
8.0.140.0000.00717.02
8.0.130.0060.00013.39
8.0.120.0040.00416.89
8.0.110.0000.00717.07
8.0.100.0040.00417.02
8.0.90.0040.00417.03
8.0.80.0100.00717.00
8.0.70.0040.00416.88
8.0.60.0000.00716.88
8.0.50.0070.00017.07
8.0.30.0090.01117.14
8.0.20.0100.00917.40
8.0.10.0000.00717.09
8.0.00.0110.00716.62
7.4.330.0060.00015.55
7.4.320.0000.00616.48
7.4.300.0070.00016.66
7.4.290.0000.00716.59
7.4.280.0030.00516.65
7.4.270.0000.00716.66
7.4.260.0080.00316.50
7.4.250.0030.00516.49
7.4.240.0070.00016.71
7.4.230.0000.00716.66
7.4.220.0060.01316.57
7.4.210.0080.00516.43
7.4.200.0030.00316.63
7.4.160.0100.00616.59
7.4.150.0180.00017.40
7.4.140.0070.01417.86
7.4.130.0090.00916.50
7.4.120.0130.00916.66
7.4.110.0060.01216.63
7.4.100.0140.00416.77
7.4.90.0130.00616.49
7.4.80.0160.01319.39
7.4.70.0070.00716.52
7.4.60.0000.01816.55
7.4.50.0070.00716.54
7.4.40.0090.01316.77
7.4.30.0170.00716.64
7.4.10.0070.01115.16
7.4.00.0060.01015.06
7.3.330.0040.00413.22
7.3.320.0000.00513.30
7.3.310.0000.00716.35
7.3.300.0000.00816.49
7.3.290.0070.01016.42
7.3.280.0090.00716.46
7.3.270.0110.00717.40
7.3.260.0140.00716.54
7.3.250.0090.01016.53
7.3.240.0110.00816.53
7.3.230.0090.00916.64
7.3.210.0070.01016.51
7.3.200.0100.00816.62
7.3.190.0110.00616.54
7.3.180.0110.00716.72
7.3.170.0040.01416.55
7.3.160.0070.01016.63
7.3.130.0130.00715.01
7.3.120.0120.00714.75
7.3.110.0040.01414.87
7.3.100.0080.00715.08
7.3.90.0060.00514.85
7.3.80.0060.00515.02
7.3.70.0010.01314.74
7.3.60.0070.00514.87
7.3.50.0100.00514.82
7.3.40.0090.00414.81
7.3.30.0080.00814.88
7.3.20.0050.00916.71
7.3.10.0020.01316.64
7.3.00.0060.00716.61
7.2.330.0150.00816.77
7.2.320.0060.01316.72
7.2.310.0090.00916.58
7.2.300.0100.01316.87
7.2.290.0110.00916.86
7.2.260.0060.01315.02
7.2.250.0100.00714.92
7.2.240.0030.01215.11
7.2.230.0080.00615.08
7.2.220.0020.01215.16
7.2.210.0030.01015.28
7.2.200.0050.01015.19
7.2.190.0080.00815.18
7.2.180.0050.01114.92
7.2.170.0030.01014.92
7.2.160.0100.00415.16
7.2.150.0040.01417.01
7.2.140.0000.01617.09
7.2.130.0070.01016.88
7.2.120.0040.01116.80
7.2.110.0090.00617.01
7.2.100.0030.00716.91
7.2.90.0030.01217.06
7.2.80.0070.01016.78
7.2.70.0070.01116.94
7.2.60.0050.01017.04
7.2.50.0070.00316.84
7.2.40.0070.01017.16
7.2.30.0070.00417.14
7.2.20.0110.00316.78
7.2.10.0030.00817.03
7.2.00.0050.01118.24
7.1.330.0110.00415.97
7.1.320.0050.00815.85
7.1.310.0110.00515.75
7.1.300.0080.00315.89
7.1.290.0060.00715.58
7.1.280.0020.00615.66
7.1.270.0020.00915.94
7.1.260.0050.01015.66
7.1.250.0070.00315.83
7.1.240.0030.01315.64
7.1.230.0030.00715.54
7.1.220.0090.00615.64
7.1.210.0070.00715.96
7.1.200.0060.01015.86
7.1.190.0100.00715.84
7.1.180.0030.00715.94
7.1.170.0070.00715.95
7.1.160.0070.00415.85
7.1.150.0000.01415.54
7.1.140.0060.00615.71
7.1.130.0040.01215.78
7.1.120.0060.00615.90
7.1.110.0040.00415.91
7.1.100.0060.00617.02
7.1.90.0030.01015.59
7.1.80.0030.01015.64
7.1.70.0060.00816.59
7.1.60.0110.01025.32
7.1.50.0100.01125.37
7.1.40.0150.01125.07
7.1.30.0120.01625.27
7.1.20.0140.01325.08
7.1.10.0060.00916.19
7.1.00.0060.00916.20
7.0.330.0040.00415.39
7.0.320.0030.00715.30
7.0.310.0030.00915.42
7.0.300.0070.01015.20
7.0.290.0070.00415.45
7.0.280.0040.00815.53
7.0.270.0000.00915.10
7.0.260.0030.01015.54
7.0.250.0100.00315.60
7.0.240.0070.00315.48
7.0.230.0030.00715.55
7.0.220.0100.00715.57
7.0.210.0060.00615.28
7.0.200.0060.00716.18
7.0.190.0060.00716.05
7.0.180.0060.00915.85
7.0.170.0080.00615.74
7.0.160.0060.00915.97
7.0.150.0060.00915.83
7.0.140.0040.00915.98
7.0.130.0030.01315.86
7.0.120.0030.01415.96
7.0.110.0090.00515.94
7.0.100.0080.00515.83
7.0.90.0050.00815.72
7.0.80.0060.00815.92
7.0.70.0060.00715.76
7.0.60.0040.00715.76
7.0.50.0020.01216.03
7.0.40.0030.01115.03
7.0.30.0050.01015.04
7.0.20.0050.00614.96
7.0.10.0100.00314.98
7.0.00.0050.00714.95
5.6.400.0000.01314.34
5.6.390.0040.00814.12
5.6.380.0140.00014.48
5.6.370.0040.01214.61
5.6.360.0040.01214.75
5.6.350.0040.01114.36
5.6.340.0030.00914.05
5.6.330.0030.00614.29
5.6.320.0060.00614.18
5.6.310.0130.00314.37
5.6.300.0060.00914.73
5.6.290.0030.00914.40
5.6.280.0030.01014.42
5.6.270.0140.00014.25
5.6.260.0030.01014.32
5.6.250.0070.00714.59
5.6.240.0090.00614.43
5.6.230.0080.00314.29
5.6.220.0040.01114.80
5.6.210.0030.00914.53
5.6.200.0040.01114.38
5.6.190.0040.01114.61
5.6.180.0070.00714.41
5.6.170.0030.01314.41
5.6.160.0030.00914.32
5.6.150.0080.00814.54
5.6.140.0060.01214.57
5.6.130.0000.01414.26
5.6.120.0030.00614.18
5.6.110.0070.00314.47
5.6.100.0080.00814.25
5.6.90.0070.00714.46
5.6.80.0040.01114.41
5.6.70.0060.00614.23
5.6.60.0030.00614.38
5.6.50.0030.00914.48
5.6.40.0000.00914.29
5.6.30.0060.00914.27
5.6.20.0030.01014.27
5.6.10.0000.00814.59
5.6.00.0000.01314.18

preferences:
36.35 ms | 401 KiB | 5 Q