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); } die(var_dump($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.0120.00616.50
8.3.50.0090.00616.38
8.3.40.0110.00318.59
8.3.30.0120.00318.83
8.3.20.0040.00420.26
8.3.10.0000.00821.79
8.3.00.0040.00419.50
8.2.180.0070.01116.61
8.2.170.0030.01422.96
8.2.160.0100.00320.35
8.2.150.0130.00324.18
8.2.140.0000.00824.66
8.2.130.0080.00021.13
8.2.120.0040.00426.35
8.2.110.0030.00721.13
8.2.100.0090.00318.03
8.2.90.0080.00019.30
8.2.80.0030.00617.97
8.2.70.0030.00517.63
8.2.60.0000.00918.16
8.2.50.0050.00318.10
8.2.40.0000.00820.50
8.2.30.0050.00321.15
8.2.20.0040.00418.09
8.2.10.0060.00318.14
8.2.00.0040.00418.02
8.1.280.0120.00325.92
8.1.270.0040.00422.06
8.1.260.0050.00326.35
8.1.250.0030.00528.09
8.1.240.0080.00419.28
8.1.230.0070.00419.10
8.1.220.0040.00417.78
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0050.00317.35
8.1.180.0000.00818.10
8.1.170.0040.00419.02
8.1.160.0050.00219.09
8.1.150.0080.00020.58
8.1.140.0050.00519.52
8.1.130.0040.00418.96
8.1.120.0000.00717.48
8.1.110.0050.00217.30
8.1.100.0040.00417.39
8.1.90.0050.00317.38
8.1.80.0040.00417.49
8.1.70.0040.00417.51
8.1.60.0030.00517.49
8.1.50.0090.00017.54
8.1.40.0000.00817.56
8.1.30.0040.00417.57
8.1.20.0000.00817.61
8.1.10.0050.00317.49
8.1.00.0040.00417.42
8.0.300.0020.00520.13
8.0.290.0000.00716.63
8.0.280.0070.00018.51
8.0.270.0000.00717.20
8.0.260.0080.00016.91
8.0.250.0000.00717.06
8.0.240.0030.00417.01
8.0.230.0040.00417.05
8.0.220.0000.00816.89
8.0.210.0050.00317.01
8.0.200.0070.00017.08
8.0.190.0030.00717.09
8.0.180.0070.00016.93
8.0.170.0050.00316.99
8.0.160.0040.00416.89
8.0.150.0040.00416.92
8.0.140.0040.00416.96
8.0.130.0000.00713.34
8.0.120.0000.00917.06
8.0.110.0000.00717.01
8.0.100.0040.00416.98
8.0.90.0070.00016.92
8.0.80.0080.00817.01
8.0.70.0030.00516.86
8.0.60.0030.00516.97
8.0.50.0050.00216.93
8.0.30.0100.00817.21
8.0.20.0120.01117.40
8.0.10.0040.00416.98
8.0.00.0060.01316.84
7.4.330.0000.00715.55
7.4.320.0030.00316.62
7.4.300.0030.00316.47
7.4.290.0040.00416.54
7.4.280.0090.00016.43
7.4.270.0070.00016.54
7.4.260.0060.00316.51
7.4.250.0030.00316.47
7.4.240.0080.00016.54
7.4.230.0070.00016.28
7.4.220.0110.00716.67
7.4.210.0030.01016.45
7.4.200.0070.00016.51
7.4.160.0080.01216.55
7.4.150.0090.00917.40
7.4.140.0110.01017.86
7.4.130.0100.01616.41
7.4.120.0150.00916.68
7.3.330.0030.00313.25
7.3.320.0000.00513.20
7.3.310.0070.00016.39
7.3.300.0000.00716.39
7.3.290.0110.00616.40
7.3.280.0060.01116.34
7.3.270.0120.00617.40
7.3.260.0060.01316.50
7.3.250.0110.01016.37
7.3.240.0110.00816.38

preferences:
54.82 ms | 400 KiB | 5 Q