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 = 'signature.wix.codeoasis.com'; $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 . ',' . 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']; echo "The concat result is : " . $concat; // 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.0060.00918.39
8.3.50.0140.01021.02
8.3.40.0040.01118.83
8.3.30.0110.00420.07
8.3.20.0050.00318.80
8.3.10.0090.00020.95
8.3.00.0000.00819.79
8.2.180.0030.01716.75
8.2.170.0150.00022.96
8.2.160.0070.00720.34
8.2.150.0000.01024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0030.00719.18
8.2.110.0030.00720.53
8.2.100.0120.00018.21
8.2.90.0000.00819.26
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0030.00517.93
8.2.50.0000.00818.10
8.2.40.0040.00419.36
8.2.30.0060.00319.26
8.2.20.0080.00017.73
8.2.10.0030.00617.66
8.2.00.0080.00017.63
8.1.280.0090.00625.92
8.1.270.0000.00823.99
8.1.260.0090.00626.35
8.1.250.0100.00328.09
8.1.240.0060.00324.02
8.1.230.0040.00817.70
8.1.220.0060.00317.77
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0050.00317.35
8.1.180.0000.00818.10
8.1.170.0050.00318.39
8.1.160.0000.00718.89
8.1.150.0030.00518.81
8.1.140.0040.00417.42
8.1.130.0000.00717.84
8.1.120.0040.00417.35
8.1.110.0040.00417.42
8.1.100.0040.00417.45
8.1.90.0000.00717.38
8.1.80.0050.00217.52
8.1.70.0070.00017.31
8.1.60.0040.00417.48
8.1.50.0000.00817.37
8.1.40.0000.00817.38
8.1.30.0040.00417.67
8.1.20.0000.00817.63
8.1.10.0000.00817.53
8.1.00.0030.00617.58
8.0.300.0040.00418.77
8.0.290.0000.00716.72
8.0.280.0000.00718.36
8.0.270.0000.00816.85
8.0.260.0000.00716.82
8.0.250.0040.00416.92
8.0.240.0000.00716.86
8.0.230.0070.00016.83
8.0.220.0000.00716.95
8.0.210.0050.00216.95
8.0.200.0000.00616.97
8.0.190.0030.00616.97
8.0.180.0050.00217.00
8.0.170.0070.00016.81
8.0.160.0060.00316.71
8.0.150.0070.00016.94
8.0.140.0060.00316.75
8.0.130.0030.00313.38
8.0.120.0000.00816.86
8.0.110.0000.00816.96
8.0.100.0000.00716.93
8.0.90.0050.00316.70
8.0.80.0120.00616.93
8.0.70.0050.00216.80
8.0.60.0040.00416.77
8.0.50.0040.00416.90
8.0.30.0100.01217.34
8.0.20.0120.00717.40
8.0.10.0020.00517.01
8.0.00.0110.01116.71
7.4.330.0020.00316.84
7.4.320.0040.00416.47
7.4.300.0000.00816.59
7.4.290.0030.00316.44
7.4.280.0030.00316.58
7.4.270.0030.00316.61
7.4.260.0060.00013.28
7.4.250.0040.00416.59
7.4.240.0000.00716.54
7.4.230.0030.00316.62
7.4.220.0080.00816.49
7.4.210.0040.01116.57
7.4.200.0030.00316.63
7.4.190.0000.00716.46
7.4.160.0070.01716.61
7.4.150.0110.00817.40
7.4.140.0110.00917.86
7.4.130.0090.00916.60
7.4.120.0110.00816.52
7.4.110.0110.00816.34
7.4.100.0120.00616.48
7.4.90.0100.01016.44
7.4.80.0150.00319.39
7.4.70.0060.00916.60
7.4.60.0150.00316.46
7.4.50.0060.00316.66
7.4.40.0080.00322.77
7.4.30.0130.01016.52
7.4.00.0020.01314.99
7.3.330.0050.00013.44
7.3.320.0030.00313.30
7.3.310.0040.00416.33
7.3.300.0030.00316.32
7.3.290.0070.01016.44
7.3.280.0090.00716.35
7.3.270.0180.00317.40
7.3.260.0160.00718.24
7.3.250.0120.00516.53
7.3.240.0140.00316.59
7.3.230.0130.00316.39
7.3.210.0100.00616.29
7.3.200.0100.01219.39
7.3.190.0070.01416.36
7.3.180.0040.01116.32
7.3.170.0000.01716.59
7.3.160.0040.01216.43
7.3.120.0050.00814.69
7.3.110.0000.01314.70
7.3.100.0070.00714.64
7.3.90.0040.00414.91
7.3.80.0060.00914.99
7.3.70.0000.00914.82
7.3.60.0080.00014.77
7.3.50.0000.00814.98
7.3.40.0030.00914.86
7.3.30.0110.00014.58
7.3.20.0110.00316.39
7.3.10.0000.01316.70
7.3.00.0070.00716.49
7.2.330.0090.00916.76
7.2.320.0070.01016.84
7.2.310.0110.01116.79
7.2.300.0080.00816.71
7.2.290.0120.00616.43
7.2.250.0070.01015.24
7.2.240.0060.01215.29
7.2.230.0070.00314.94
7.2.220.0090.00015.27
7.2.210.0080.00815.10
7.2.200.0060.00614.92
7.2.190.0090.00014.88
7.2.180.0070.00715.30
7.2.170.0030.01315.05
7.2.60.0110.00317.01
7.2.00.0060.00919.53
7.1.330.0070.00715.78
7.1.320.0040.00415.77
7.1.310.0000.01115.92
7.1.300.0080.00015.77
7.1.290.0090.00616.02
7.1.280.0110.00415.59
7.1.270.0100.00315.83
7.1.260.0090.00316.02
7.1.200.0030.01015.60
7.1.100.0190.00917.95
7.1.70.0090.00416.91
7.1.60.0100.00517.28
7.1.50.0080.00817.08
7.1.40.0030.00916.84
7.1.30.0080.00816.66
7.1.20.0100.00616.58
7.1.10.0080.00416.63
7.1.00.0050.00316.66
7.0.200.0070.00416.53
7.0.190.0060.00616.67
7.0.180.0060.00616.48
7.0.170.0080.00816.25
7.0.160.0080.00816.14
7.0.150.0040.00816.29
7.0.140.0080.00616.11
7.0.130.0050.01016.68
7.0.120.0130.00616.66
7.0.110.0120.00416.52
7.0.100.0040.00816.23
7.0.90.0000.01116.21
7.0.80.0060.00616.37
7.0.70.0040.00716.22
7.0.60.0080.00316.12
7.0.50.0060.00616.15
7.0.40.0060.00615.18
7.0.30.0000.01315.18
7.0.20.0000.00715.18
7.0.10.0000.00715.18
7.0.00.0000.00715.18
5.6.300.0070.09820.93
5.6.290.0030.05120.64
5.6.280.0060.05020.79
5.6.270.0000.05220.79
5.6.260.0080.06020.92
5.6.250.0040.04220.82
5.6.240.0090.04120.89
5.6.230.0060.04120.73
5.6.220.0090.04120.71
5.6.210.0110.03721.00
5.6.200.0120.04120.88
5.6.190.0070.04020.89
5.6.180.0030.04520.88
5.6.170.0070.03520.82
5.6.160.0030.03920.74
5.6.150.0060.04220.90
5.6.140.0070.04420.70
5.6.130.0000.04420.93
5.6.120.0030.04120.97
5.6.110.0030.04120.87
5.6.100.0000.04420.94
5.6.90.0070.05320.88
5.6.80.0030.03820.20
5.6.70.0000.04020.12
5.6.60.0030.04520.27
5.6.50.0070.04020.04
5.6.40.0000.04020.28
5.6.30.0030.03820.26
5.6.20.0000.04420.31
5.6.10.0000.04020.01
5.6.00.0030.03720.25
5.5.380.0030.04117.55
5.5.370.0060.04317.64
5.5.360.0030.04017.54
5.5.350.0000.04217.39
5.5.340.0070.03718.08
5.5.330.0090.03518.08
5.5.320.0000.04518.12
5.5.310.0130.03717.66
5.5.300.0000.04318.10
5.5.290.0000.04817.70
5.5.280.0060.04117.79
5.5.270.0030.04618.01
5.5.260.0070.03918.00
5.5.250.0040.03917.93
5.5.240.0000.04717.40
5.5.230.0090.04117.39
5.5.220.0000.04017.21
5.5.210.0070.03417.04
5.5.200.0000.04117.41
5.5.190.0000.04117.45
5.5.180.0100.03417.41
5.5.160.0070.03317.44
5.5.150.0070.03317.01
5.5.140.0030.03717.01
5.5.130.0060.04117.52
5.5.120.0110.03817.47
5.5.110.0000.04417.38
5.5.100.0030.04416.96
5.5.90.0090.03317.34
5.5.80.0070.03617.31
5.5.70.0070.04417.33
5.5.60.0030.04117.33
5.5.50.0090.03417.30
5.5.40.0000.04817.34
5.5.30.0030.04417.27
5.5.20.0100.03617.24
5.5.10.0070.04417.42
5.5.00.0070.04316.93
5.4.450.0030.04819.27
5.4.440.0030.04319.46
5.4.430.0000.04119.55
5.4.420.0070.04019.37
5.4.410.0150.03019.43
5.4.400.0060.03319.05
5.4.390.0070.04318.96
5.4.380.0030.04019.13
5.4.370.0040.04018.85
5.4.360.0070.04119.24
5.4.350.0030.04419.22
5.4.340.0030.04018.88
5.4.320.0070.03819.05
5.4.310.0000.04519.05
5.4.300.0000.04519.07
5.4.290.0030.04119.17
5.4.280.0030.04518.96
5.4.270.0120.03119.23
5.4.260.0070.03919.13
5.4.250.0030.04019.23
5.4.240.0040.04619.13
5.4.230.0060.04218.91
5.4.220.0000.05218.99
5.4.210.0030.04719.15
5.4.200.0170.03318.93
5.4.190.0070.04218.94
5.4.180.0130.03218.98
5.4.170.0100.03318.91
5.4.160.0070.03519.04
5.4.150.0060.04818.96
5.4.140.0070.03516.50
5.4.130.0030.03616.46
5.4.120.0070.03516.67
5.4.110.0060.04116.48
5.4.100.0070.03516.73
5.4.90.0070.03316.59
5.4.80.0100.03316.69
5.4.70.0030.04416.73
5.4.60.0060.03916.70
5.4.50.0030.04116.68
5.4.40.0070.03416.73
5.4.30.0000.04216.42
5.4.20.0000.04416.60
5.4.10.0070.04716.70
5.4.00.0030.04115.91
5.3.290.0060.03815.18
5.3.280.0060.03815.18
5.3.270.0000.04215.18
5.3.260.0040.03915.18
5.3.250.0030.03815.18
5.3.240.0000.04315.18
5.3.230.0030.04315.18
5.3.220.0100.03415.18
5.3.210.0130.03915.18
5.3.200.0030.04015.18
5.3.190.0170.02715.18
5.3.180.0000.04915.18
5.3.170.0000.04415.18
5.3.160.0030.04015.18
5.3.150.0100.03615.18
5.3.140.0040.04315.18
5.3.130.0120.03115.18
5.3.120.0090.04115.18
5.3.110.0030.04215.18
5.3.100.0030.03915.18
5.3.90.0060.03915.18
5.3.80.0070.03715.18
5.3.70.0200.03915.18
5.3.60.0100.03015.18
5.3.50.0040.03615.18
5.3.40.0070.04015.18
5.3.30.0030.03915.18
5.3.20.0000.03815.18
5.3.10.0000.03715.18
5.3.00.0030.03515.18
5.2.170.0070.02815.18
5.2.160.0030.03615.18
5.2.150.0000.03315.18
5.2.140.0000.03815.18
5.2.130.0090.03315.18
5.2.120.0030.03015.18
5.2.110.0030.02815.18
5.2.100.0070.02615.18
5.2.90.0070.03115.18
5.2.80.0060.02915.18
5.2.70.0000.03315.18
5.2.60.0030.02715.18
5.2.50.0000.03315.18
5.2.40.0100.03915.18
5.2.30.0060.03115.18
5.2.20.0030.03215.18
5.2.10.0070.02415.18
5.2.00.0040.03015.18
5.1.60.0070.02015.18
5.1.50.0060.02515.18
5.1.40.0070.02015.18
5.1.30.0070.04915.18
5.1.20.0000.03215.18
5.1.10.0000.03115.18
5.1.00.0000.02915.18
5.0.50.0060.02715.18
5.0.40.0130.03215.18
5.0.30.0040.03015.18
5.0.20.0030.02915.18
5.0.10.0000.02215.18
5.0.00.0030.04915.18
4.4.90.0050.01215.18
4.4.80.0000.01715.18
4.4.70.0000.01615.18
4.4.60.0040.01515.18
4.4.50.0040.01615.18
4.4.40.0030.02415.18
4.4.30.0030.01315.18
4.4.20.0000.01715.18
4.4.10.0060.02515.18
4.4.00.0030.05215.18
4.3.110.0000.01715.18
4.3.100.0030.03115.18
4.3.90.0030.02615.18
4.3.80.0070.04615.18
4.3.70.0040.02215.18
4.3.60.0000.02915.18
4.3.50.0070.02315.18
4.3.40.0000.03115.18
4.3.30.0000.02915.18
4.3.20.0000.01715.18
4.3.10.0000.01715.18
4.3.00.0040.01515.18

preferences:
52.34 ms | 401 KiB | 5 Q