3v4l.org

run code in 300+ PHP versions simultaneously
<?php $request = 'POST'; // I've set the callback url to http://signature.wix.codeoasis.com/ // I've tried with and without the '/' (ie $url = '') $url = '/'; $headers = array( 'X-Wix-Signature' => '3elavUOF0-I1_7tGz2XZKs_HSlrygsMiblpNFPKv3Ik', "X-Wix-Instance-Id" => "132fc751-9325-63d3-a605-f74e0c25192a", "X-Wix-Event-Id" => "da390885-e72f-4a93-be7f-a90220bac5c7", "X-Wix-Event-Type" => "/provision/provision", "X-Wix-Timestamp" => "2013-10-23T15:39:34.462Z", "X-Wix-Application-Id" => "132fbf95-d58e-f9ed-86e8-48b76f901d91" ); //$body = "{\n\t\"instance-id\": \"1328a7fe-e451-8780-d201-0c5d9a1fc02b\"\n}"; $body = '{"instance-id":"132fc751-9325-63d3-a605-f74e0c25192a"}'; // The app secret provided by Wix $appSecret = "97cfac6e-b061-4007-a03e-eb4bc199e620"; function concat($request, $url, $headers, $body) { // Request Method and Url separated by \n $result = trim($request); $result .= "\n"; $result .= trim($url); $result .= "\n"; // Sort Wix-* headers by key ksort($headers); // concatenate Wix-* headers (trimmed and separate by comma) $first = true; foreach ($headers as $key => $value) { if ($key != 'X-Wix-Signature' && $first == true) { $result = $result . trim($value); $first = false; } else if ($key != 'X-Wix-Signature') { $result = $result . '\n' . trim($value); } } // Add body $result = $result . "\n" . trim($body); return $result; } $concat = concat($request, $url, $headers, $body); // Encrypt with hmac and app secret $encrypted = hash_hmac('sha256', $concat, $appSecret); $base64 = base64_encode($encrypted); echo "The computed signature is : " . $encrypted . "\n"; echo "The signature sent by Wix : " . $headers['X-Wix-Signature']; // The received request on http://signature.wix.codeoasis.com/ // // { // "Host": "signature.wix.codeoasis.com", // "X-Wix-Signature": "3elavUOF0-I1_7tGz2XZKs_HSlrygsMiblpNFPKv3Ik", // "X-Wix-Instance-Id": "132fc751-9325-63d3-a605-f74e0c25192a", // "X-Wix-Event-Id": "da390885-e72f-4a93-be7f-a90220bac5c7", // "Content-Type": "application/json; charset=utf-8", // "X-Wix-Event-Type": "/provision/provision", // "X-Wix-Timestamp": "2013-10-23T15:39:34.462Z", // "X-Wix-Application-Id": "132fbf95-d58e-f9ed-86e8-48b76f901d91", // "Connection": "keep-alive", // "Accept": "*/*", // "User-Agent": "Dispatch/0.10.1", // "Content-Length": "54", // "body": // { // "instance-id":"132fc751-9325-63d3-a605-f74e0c25192a" // } // }

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.0100.01018.68
8.3.50.0110.01022.05
8.3.40.0080.00818.88
8.3.30.0150.00019.13
8.3.20.0040.00420.34
8.3.10.0050.00322.00
8.3.00.0060.00322.21
8.2.180.0120.00316.63
8.2.170.0040.01122.96
8.2.160.0100.00320.41
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0090.00017.63
8.2.110.0040.00422.25
8.2.100.0060.00617.78
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0030.00618.30
8.2.30.0000.00818.19
8.2.20.0040.00417.83
8.2.10.0050.00317.81
8.2.00.0020.00517.63
8.1.280.0120.00325.92
8.1.270.0040.00422.16
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.96
8.1.230.0090.00319.22
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0070.01117.10
8.1.190.0050.00317.55
8.1.180.0000.00918.72
8.1.170.0000.00818.66
8.1.160.0040.00421.94
8.1.150.0050.00318.66
8.1.140.0000.00917.45
8.1.130.0050.00217.71
8.1.120.0000.00717.47
8.1.110.0050.00317.34
8.1.100.0040.00417.40
8.1.90.0040.00417.38
8.1.80.0000.00717.41
8.1.70.0000.00717.43
8.1.60.0080.00017.51
8.1.50.0000.00717.52
8.1.40.0040.00417.58
8.1.30.0030.00617.64
8.1.20.0050.00317.55
8.1.10.0020.00517.55
8.1.00.0030.00617.59
8.0.300.0060.00618.77
8.0.290.0070.00017.18
8.0.280.0040.00418.50
8.0.270.0000.00717.18
8.0.260.0030.00316.71
8.0.250.0030.00316.99
8.0.240.0040.00416.93
8.0.230.0030.00516.94
8.0.220.0040.00416.80
8.0.210.0040.00416.73
8.0.200.0030.00316.86
8.0.190.0030.00316.89
8.0.180.0000.00716.82
8.0.170.0050.00316.86
8.0.160.0070.00016.84
8.0.150.0000.00716.86
8.0.140.0000.00716.92
8.0.130.0070.00013.36
8.0.120.0000.00816.88
8.0.110.0000.00716.73
8.0.100.0000.00816.77
8.0.90.0040.00417.02
8.0.80.0110.00416.96
8.0.70.0040.00416.95
8.0.60.0030.00416.78
8.0.50.0040.00416.86
8.0.30.0100.00816.98
8.0.20.0090.01017.40
8.0.10.0020.00516.86
8.0.00.0090.01116.89
7.4.330.0050.00015.00
7.4.320.0060.00016.54
7.4.300.0000.00616.59
7.4.290.0040.00416.52
7.4.280.0040.00416.51
7.4.270.0000.00716.45
7.4.260.0000.00716.62
7.4.250.0080.00016.50
7.4.240.0020.00516.52
7.4.230.0050.00316.68
7.4.220.0090.00916.59
7.4.210.0050.00916.62
7.4.200.0000.00716.72
7.4.190.0040.00416.61
7.4.160.0140.00316.52
7.4.150.0160.00917.40
7.4.140.0050.01417.86
7.4.130.0120.00716.66
7.4.120.0060.01116.58
7.4.110.0130.00416.34
7.4.100.0100.01016.63
7.4.90.0140.00316.55
7.4.80.0030.01519.39
7.4.70.0120.00916.47
7.4.60.0100.01016.56
7.4.50.0000.00816.34
7.4.40.0090.00622.77
7.4.30.0140.00316.36
7.4.00.0070.00914.97
7.3.330.0060.00013.33
7.3.320.0000.00513.30
7.3.310.0000.00816.22
7.3.300.0030.00316.23
7.3.290.0140.00416.34
7.3.280.0090.00916.37
7.3.270.0100.00717.40
7.3.260.0090.00916.76
7.3.250.0100.00616.37
7.3.240.0130.00316.59
7.3.230.0040.01316.51
7.3.210.0030.01316.60
7.3.200.0060.01019.39
7.3.190.0110.00716.61
7.3.180.0100.00616.33
7.3.170.0140.00516.36
7.3.160.0170.00016.53
7.3.120.0090.00614.85
7.3.110.0050.00914.68
7.3.100.0030.01214.67
7.3.90.0040.01114.86
7.3.80.0050.00814.93
7.3.70.0070.00714.83
7.3.60.0080.00514.81
7.3.50.0060.00814.79
7.3.40.0020.01014.80
7.3.30.0100.00214.69
7.3.20.0040.01116.66
7.3.10.0070.00916.62
7.3.00.0090.00316.62
7.2.330.0120.00616.79
7.2.320.0090.00916.78
7.2.310.0030.01416.71
7.2.300.0140.00316.71
7.2.290.0080.01516.70
7.2.250.0070.01015.06
7.2.240.0090.01015.09
7.2.230.0060.01015.20
7.2.220.0070.01015.14
7.2.210.0040.01014.96
7.2.200.0030.01014.73
7.2.190.0050.00715.15
7.2.180.0070.00915.26
7.2.170.0060.00715.02
7.1.330.0090.00715.74
7.1.320.0020.01215.88
7.1.310.0070.00915.81
7.1.300.0020.00915.77
7.1.290.0040.01215.64
7.1.280.0000.01015.80
7.1.270.0070.00515.69
7.1.260.0110.00415.86
7.1.100.0000.01118.49
7.1.70.0030.01017.29
7.1.60.0080.00419.82
7.1.50.0000.01416.91
7.1.00.0030.07722.45
7.0.200.0000.00716.61
7.0.140.0000.07722.12
7.0.60.0030.04319.97
7.0.50.0170.06317.98
7.0.40.0100.08020.15
7.0.30.0330.06020.11
7.0.20.0230.04020.09
7.0.10.0170.07720.10
7.0.00.0100.03720.25
5.6.280.0030.07320.79
5.6.210.0070.08020.54
5.6.200.0100.08018.20
5.6.190.0030.04720.41
5.6.180.3170.03720.52
5.6.170.0300.03720.56
5.6.160.0070.03720.43
5.6.150.0100.08018.23
5.6.140.0000.07718.17
5.6.130.0030.08318.15
5.6.120.0000.04321.05
5.6.110.0070.08720.96
5.6.100.0030.07721.04
5.6.90.0130.04321.13
5.6.80.0030.05020.38
5.6.70.3230.03320.38
5.5.350.0200.08020.47
5.5.340.0070.05317.95
5.5.330.0070.05720.40
5.5.320.3300.04320.42
5.5.310.0200.05320.36
5.5.300.0200.06317.94
5.5.290.0000.09018.07
5.5.280.0100.08320.89
5.5.270.0130.06720.87
5.5.260.0030.04020.84
5.5.250.0100.07020.60
5.5.240.0200.07320.12
5.4.450.0070.03719.27
5.4.440.0000.05319.48
5.4.430.0070.08019.26
5.4.420.0000.04019.27
5.4.410.0000.03719.27
5.4.400.0030.04019.09
5.4.390.0000.03719.32
5.4.380.0030.03318.95
5.4.370.0070.03019.22
5.4.360.0030.03719.34
5.4.350.0030.03719.15
5.4.340.0000.03719.09
5.4.320.0130.03018.98
5.4.310.0000.04018.98
5.4.300.0000.03718.98
5.4.290.0030.03319.22
5.4.280.0000.04719.24
5.4.270.0000.04718.84
5.4.260.0030.05019.31
5.4.250.0070.07019.21
5.4.240.0000.05719.22
5.4.230.0030.07018.99
5.4.220.0030.05019.21
5.4.210.0030.06719.08
5.4.200.0000.08319.06
5.4.190.0030.07319.07
5.4.180.0000.05019.00
5.4.170.0070.04719.15
5.4.160.0030.04718.85
5.4.150.0070.07018.83
5.4.140.0030.05716.67
5.4.130.0000.04716.32
5.4.120.0030.06716.37
5.4.110.0000.06716.40
5.4.100.0030.06016.35
5.4.90.0030.04316.56
5.4.80.0030.04016.51
5.4.70.0070.05016.53
5.4.60.0030.06016.17
5.4.50.0070.04716.48
5.4.40.0030.05316.53
5.4.30.0100.06716.43
5.4.20.0100.06716.24
5.4.10.0000.07716.32
5.4.00.0000.04015.79
5.3.290.0030.03714.70
5.3.280.0000.07714.70
5.3.270.0070.07714.70
5.3.260.0070.05014.70
5.3.250.0030.07014.70
5.3.240.0000.08014.70
5.3.230.0070.07014.70
5.3.220.0070.07714.70
5.3.210.0000.07314.70
5.3.200.0030.07314.70
5.3.190.0030.07314.70
5.3.180.0130.04714.70
5.3.170.0030.07314.70
5.3.160.0030.07014.70
5.3.150.0030.07014.70
5.3.140.0030.04714.70
5.3.130.0070.07714.70
5.3.120.0100.07314.70
5.3.110.0070.07014.70
5.3.100.0000.07714.70
5.3.90.0030.05714.70
5.3.80.0030.04014.70
5.3.70.0070.07014.70
5.3.60.0000.07714.70
5.3.50.0070.06714.70
5.3.40.0000.05314.70
5.3.30.0000.06014.70
5.3.20.0070.04014.70
5.3.10.0070.07014.70
5.3.00.0070.06314.70
5.2.170.0030.06314.70
5.2.160.0030.05314.70
5.2.150.0000.06714.70
5.2.140.0000.04714.70
5.2.130.0070.05714.70
5.2.120.0070.06014.70
5.2.110.0070.05314.70
5.2.100.0030.05314.70
5.2.90.0000.05714.70
5.2.80.0070.03314.70
5.2.70.0000.06314.70
5.2.60.0100.03314.70
5.2.50.0030.06314.70
5.2.40.0030.05314.70
5.2.30.0000.04014.70
5.2.20.0000.03714.70
5.2.10.0030.06014.70
5.2.00.0030.06314.70
5.1.60.0000.04014.70
5.1.50.0030.04714.70
5.1.40.0030.05014.70
5.1.30.0000.06014.70
5.1.20.0000.06014.70
5.1.10.0030.02714.70
5.1.00.0000.03014.70
5.0.50.0100.03314.70
5.0.40.0000.04714.70
5.0.30.0000.05714.70
5.0.20.0030.03714.70
5.0.10.0000.04714.70
5.0.00.0030.05714.70
4.4.90.0000.02014.70
4.4.80.0030.03714.70
4.4.70.0070.03014.70
4.4.60.0000.02714.70
4.4.50.0030.02314.70
4.4.40.0000.04714.70
4.4.30.0070.02014.70
4.4.20.0000.02014.70
4.4.10.0000.03014.70
4.4.00.0000.04714.70
4.3.110.0000.03714.70
4.3.100.0000.03714.70
4.3.90.0000.03714.70
4.3.80.0030.05314.70
4.3.70.0030.03314.70
4.3.60.0030.03314.70
4.3.50.0000.03714.70
4.3.40.0030.03314.70
4.3.30.0000.03714.70
4.3.20.0000.03714.70
4.3.10.0000.04014.70
4.3.00.0000.03714.70

preferences:
39.66 ms | 401 KiB | 5 Q