3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Get your access id and secret key here: https://moz.com/products/api/keys $accessID = "mozscape-02c27682b8"; $secretKey = "23d89133205a7b46f944ea6ddb2fead2"; // Set your expires times for several minutes into the future. // An expires time excessively far in the future will not be honored by the Mozscape API. $expires = time() + 300; // Put each parameter on a new line. $stringToSign = $accessID."\n".$expires; // Get the "raw" or binary output of the hmac hash. $binarySignature = hash_hmac('sha1', $stringToSign, $secretKey, true); // Base64-encode it and then url-encode that. $urlSafeSignature = urlencode(base64_encode($binarySignature)); // Add up all the bit flags you want returned. // Learn more here: https://moz.com/help/guides/moz-api/mozscape/api-reference/url-metrics $cols = "34359738368"; // Put it all together and you get your request URL. $requestUrl = "http://lsapi.seomoz.com/linkscape/url-metrics/?Cols=".$cols."&AccessID=".$accessID."&Expires=".$expires."&Signature=".$urlSafeSignature; // Put your URLS into an array and json_encode them. $batchedDomains = array('www.moz.com', 'www.apple.com', 'www.pizza.com'); $encodedDomains = json_encode($batchedDomains); // Use Curl to send off your request. // Send your encoded list of domains through Curl's POSTFIELDS. $options = array( CURLOPT_RETURNTRANSFER => true, CURLOPT_POSTFIELDS => $encodedDomains ); $ch = curl_init($requestUrl); curl_setopt_array($ch, $options); $content = curl_exec($ch); curl_close( $ch ); $contents = json_decode($content); print_r($contents); ?>

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)
7.4.10.0060.00614.85
7.4.00.0060.01214.99
7.3.130.0160.00315.08
7.3.120.0040.01414.88
7.3.110.0110.00714.92
7.3.100.0090.00314.86
7.3.90.0040.01115.04
7.3.80.0060.00314.85
7.3.70.0060.00914.90
7.3.60.0000.01015.00
7.3.50.0070.00714.57
7.3.40.0030.00914.70
7.3.30.0090.00614.88
7.3.20.0070.00416.77
7.3.10.0050.00916.45
7.3.00.0100.00516.44
7.2.260.0060.01315.07
7.2.250.0110.00714.99
7.2.240.0070.01015.09
7.2.230.0030.01315.18
7.2.220.0070.00714.93
7.2.210.0110.00315.11
7.2.200.0060.00915.23
7.2.190.0000.01415.13
7.2.180.0060.00914.77
7.2.170.0030.00914.90
7.2.160.0080.01115.16
7.2.150.0060.00616.83
7.2.140.0090.00616.65
7.2.130.0080.00616.60
7.2.120.0070.00916.70
7.2.110.0080.01016.75
7.2.100.0030.01016.87
7.2.90.0140.00216.85
7.2.80.0060.00816.69
7.2.70.0050.00616.72
7.2.60.0060.00816.85
7.2.50.0070.00916.70
7.2.40.0080.00516.99
7.2.30.0050.01316.69
7.2.20.0110.00616.88
7.2.10.0110.00617.02
7.2.00.0080.00617.75
7.1.330.0040.01116.02
7.1.320.0030.01015.57
7.1.310.0090.00615.58
7.1.300.0030.01015.74
7.1.290.0080.00415.80
7.1.280.0040.00415.87
7.1.270.0060.00315.66
7.1.260.0110.00415.79
7.1.250.0060.00815.77
7.1.240.0100.00315.85
7.1.230.0040.00815.77
7.1.220.0100.00015.93
7.1.210.0130.00315.78
7.1.200.0060.00715.68
7.1.190.0060.00615.64
7.1.180.0070.01015.81
7.1.170.0100.00315.63
7.1.160.0030.01415.84
7.1.150.0060.00615.63
7.1.140.0060.00915.84
7.1.130.0120.00315.88
7.1.120.0100.00315.82
7.1.110.0080.00515.91
7.1.100.0070.00516.99
7.1.90.0000.00815.70
7.1.80.0070.00715.86
7.1.70.0060.00716.44
7.1.60.0090.00717.68
7.1.50.0100.00616.41
7.1.40.0090.00615.73
7.1.30.0080.00415.83
7.1.20.0040.01115.71
7.1.10.0030.01016.03
7.1.00.0050.04119.09
7.0.330.0080.00415.44
7.0.320.0070.00315.41
7.0.310.0070.01015.37
7.0.300.0000.01515.55
7.0.290.0060.00915.14
7.0.280.0030.01215.44
7.0.270.0000.01715.37
7.0.260.0030.00815.49
7.0.250.0070.00715.42
7.0.240.0000.00915.64
7.0.230.0030.01015.61
7.0.220.0030.00615.69
7.0.210.0080.00615.50
7.0.200.0040.00615.08
7.0.190.0060.00615.48
7.0.180.0070.00715.29
7.0.170.0040.01115.62
7.0.160.0030.00915.44
7.0.150.0030.01015.48
7.0.140.0000.01315.57
7.0.130.0060.00615.28
7.0.120.0070.00715.32
7.0.110.0000.01415.43
7.0.100.0060.04317.77
7.0.90.0090.04517.73
7.0.80.0130.04217.63
7.0.70.0110.02617.64
7.0.60.0080.04517.71
7.0.50.0070.04417.99
7.0.40.0040.04816.79
7.0.30.0020.04816.98
7.0.20.0090.03116.84
7.0.10.0020.05016.79
7.0.00.0050.05016.73
5.6.400.0000.01414.47
5.6.390.0110.00414.32
5.6.380.0000.01214.24
5.6.370.0040.01414.10
5.6.360.0090.00914.38
5.6.350.0090.00914.51
5.6.340.0140.00014.62
5.6.330.0030.00614.64
5.6.320.0040.01114.28
5.6.310.0070.01113.99
5.6.300.0000.01514.15
5.6.290.0090.00314.00
5.6.280.0030.03817.68
5.6.270.0040.00814.64
5.6.260.0000.01414.06
5.6.250.0080.03717.43
5.6.240.0030.05017.40
5.6.230.0130.04017.44
5.6.220.0050.04517.54
5.6.210.0070.04517.53
5.6.200.0080.04117.64
5.6.190.0070.04417.54
5.6.180.0100.02717.68
5.6.170.0080.03317.71
5.6.160.0020.04817.69
5.6.150.0080.04217.64
5.6.140.0130.03317.56
5.6.130.0090.04317.87
5.6.120.0110.04117.78
5.6.110.0070.05117.66
5.6.100.0050.04717.74
5.6.90.0020.03717.67
5.6.80.0050.02817.30
5.6.70.0160.03517.35
5.6.60.0050.04117.33
5.6.50.0070.03517.40
5.6.40.0080.03617.36
5.6.30.0060.04117.42
5.6.20.0050.04017.28
5.6.10.0030.04017.23
5.6.00.0080.04217.38
5.5.380.0080.03417.35
5.5.370.0050.04517.43
5.5.360.0030.03917.36
5.5.350.0040.02617.26
5.5.340.0050.04717.62
5.5.330.0090.04217.53
5.5.320.0070.04717.45
5.5.310.0020.03617.58
5.5.300.0140.04117.62
5.5.290.0060.04517.67
5.5.280.0030.03617.57
5.5.270.0030.04917.63
5.5.260.0050.05017.45
5.5.250.0120.02717.45
5.5.240.0030.02617.21
5.5.230.0100.03017.24
5.5.220.0040.03217.27
5.5.210.0090.03817.22
5.5.200.0060.04317.29
5.5.190.0090.04317.16
5.5.180.0070.04517.24
5.5.170.0040.01114.11
5.5.160.0060.03817.07
5.5.150.0050.04417.29
5.5.140.0030.04817.10
5.5.130.0140.03317.23
5.5.120.0060.03717.24
5.5.110.0070.03817.09
5.5.100.0050.02817.16
5.5.90.0060.04117.18
5.5.80.0050.04617.21
5.5.70.0010.03917.26
5.5.60.0030.02617.10
5.5.50.0040.03617.13
5.5.40.0050.03917.18
5.5.30.0040.02417.02
5.5.20.0110.03517.21
5.5.10.0110.03817.28
5.5.00.0040.02617.19
5.4.450.0070.06719.42
5.4.440.0070.06019.44
5.4.430.0030.08319.46
5.4.420.0070.07719.20
5.4.410.0130.06719.00
5.4.400.0030.07719.07
5.4.390.0130.06318.90
5.4.380.0130.06318.98
5.4.370.0070.04319.10
5.4.360.0100.07019.03
5.4.350.0070.08018.81
5.4.340.0030.07019.12
5.4.320.0030.04719.03
5.4.310.0100.07719.06
5.4.300.0100.06719.02
5.4.290.0100.07319.07
5.4.280.0170.05019.07
5.4.270.0100.06319.08
5.4.260.0070.07018.98
5.4.250.0030.07719.11
5.4.240.0070.07319.22
5.4.230.0100.03319.09
5.4.220.0070.04019.06
5.4.210.0000.08319.02
5.4.200.0070.07719.13
5.4.190.0070.04019.11
5.4.180.0100.06719.11
5.4.170.0070.07319.02
5.4.160.0100.04319.02
5.4.150.0170.05319.00
5.4.140.0030.04316.23
5.4.130.0130.06716.32
5.4.120.0130.06316.31
5.4.110.0030.05316.26
5.4.100.0100.06316.20
5.4.90.0100.08316.35
5.4.80.0030.07716.29
5.4.70.0030.06716.21
5.4.60.0000.07716.25
5.4.50.0100.07016.38
5.4.40.0030.07016.23
5.4.30.0070.06016.31
5.4.20.0070.07716.39
5.4.10.0070.06316.33
5.4.00.0000.05715.68
5.3.290.0070.04314.52
5.3.280.0030.04014.61
5.3.270.0070.07714.55
5.3.260.0070.04014.52
5.3.250.0130.06014.52
5.3.240.0070.02714.52
5.3.230.0000.08014.59
5.3.220.0070.07714.53
5.3.210.0000.04314.43
5.3.200.0100.06314.57
5.3.190.0000.08314.53
5.3.180.0070.07714.39
5.3.170.0030.08014.54
5.3.160.0070.07714.43
5.3.150.0100.06714.53
5.3.140.0100.06714.39
5.3.130.0070.07014.41
5.3.120.0030.04714.39
5.3.110.0100.07314.40
5.3.100.0070.06013.97
5.3.90.0030.07014.01
5.3.80.0030.05013.87
5.3.70.0100.05014.01
5.3.60.0070.07313.76
5.3.50.0070.06713.94
5.3.40.0070.06013.93
5.3.30.0030.06313.83
5.3.20.0000.04713.65
5.3.10.0170.06713.63
5.3.00.0030.07313.60
5.2.170.0030.06310.96
5.2.160.0100.05011.14
5.2.150.0100.05011.19
5.2.140.0070.05011.10
5.2.130.0000.05010.96
5.2.120.0000.06311.08
5.2.110.0000.06711.04
5.2.100.0030.06011.04
5.2.90.0000.06311.07
5.2.80.0000.06011.15
5.2.70.0070.04310.94
5.2.60.0200.04310.90
5.2.50.0030.06711.09
5.2.40.0100.05311.00
5.2.30.0100.03711.04
5.2.20.0000.06710.94
5.2.10.0030.04310.77
5.2.00.0000.06010.61
5.1.60.0130.04310.34
5.1.50.0000.04310.34
5.1.40.0070.03710.34
5.1.30.0030.06310.34
5.1.20.0070.03710.49
5.1.10.0070.05310.34
5.1.00.0030.05310.34
5.0.50.0030.05010.34
5.0.40.0030.04310.34
5.0.30.0030.06310.34
5.0.20.0030.04710.34
5.0.10.0000.03710.34
5.0.00.0070.06010.34
4.4.90.0130.02310.34
4.4.80.0000.03710.34
4.4.70.0070.03310.34
4.4.60.0000.04010.34
4.4.50.0030.03310.34
4.4.40.0000.05310.34
4.4.30.0070.03010.34
4.4.20.0030.03710.34
4.4.10.0000.03710.34
4.4.00.0030.05010.34
4.3.110.0000.03010.34
4.3.100.0070.03010.34
4.3.90.0000.02710.34
4.3.80.0030.05310.34
4.3.70.0000.03710.34
4.3.60.0030.03310.34
4.3.50.0030.03310.34
4.3.40.0000.05010.34
4.3.30.0000.02010.34
4.3.20.0030.03310.34
4.3.10.0000.03310.34
4.3.00.0030.03010.34

preferences:
41.06 ms | 401 KiB | 5 Q