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.0040.01118.39
8.3.50.0070.01418.16
8.3.40.0090.00918.79
8.3.30.0140.00019.05
8.3.20.0040.00420.30
8.3.10.0050.00323.66
8.3.00.0000.00920.81
8.2.180.0080.00816.63
8.2.170.0040.01122.96
8.2.160.0100.00720.55
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0170.00026.16
8.2.120.0090.00620.79
8.2.110.0040.00422.20
8.2.100.0090.00319.51
8.2.90.0050.00319.40
8.2.80.0050.00317.97
8.2.70.0000.00917.63
8.2.60.0030.00518.04
8.2.50.0000.00818.07
8.2.40.0030.00521.07
8.2.30.0070.00018.43
8.2.20.0040.00417.84
8.2.10.0000.00718.12
8.2.00.0050.00217.73
8.1.280.0120.00925.92
8.1.270.0030.00623.88
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0030.00621.98
8.1.230.0040.00719.13
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0060.00317.23
8.1.190.0000.00817.22
8.1.180.0040.00618.10
8.1.170.0050.00318.54
8.1.160.0080.00022.03
8.1.150.0040.00418.61
8.1.140.0040.00417.42
8.1.130.0030.00317.84
8.1.120.0000.00717.50
8.1.110.0040.00417.32
8.1.100.0000.00817.39
8.1.90.0030.00517.46
8.1.80.0000.00717.44
8.1.70.0030.00317.35
8.1.60.0040.00417.47
8.1.50.0050.00317.43
8.1.40.0030.00517.54
8.1.30.0030.00617.63
8.1.20.0040.00417.70
8.1.10.0040.00417.58
8.1.00.0030.01017.52
8.0.300.0040.00418.77
8.0.290.0040.00417.05
8.0.280.0030.00318.56
8.0.270.0030.00317.25
8.0.260.0000.00717.20
8.0.250.0030.00316.97
8.0.240.0030.00316.98
8.0.230.0050.00216.94
8.0.220.0030.00316.86
8.0.210.0050.00216.86
8.0.200.0060.00016.96
8.0.190.0040.00416.99
8.0.180.0000.00716.95
8.0.170.0080.00016.82
8.0.160.0050.00216.79
8.0.150.0040.00416.77
8.0.140.0000.00816.88
8.0.130.0080.00013.37
8.0.120.0050.00216.76
8.0.110.0000.00716.91
8.0.100.0040.00416.88
8.0.90.0000.00716.92
8.0.80.0130.00916.84
8.0.70.0070.00016.87
8.0.60.0030.00616.81
8.0.50.0060.00316.90
8.0.30.0070.01117.03
8.0.20.0130.00517.40
8.0.10.0050.00216.95
8.0.00.0060.01416.79
7.4.330.0050.00015.00
7.4.320.0000.00716.61
7.4.300.0030.00316.66
7.4.290.0000.01016.62
7.4.280.0040.00416.50
7.4.270.0070.00016.60
7.4.260.0000.00716.59
7.4.250.0040.00416.58
7.4.240.0050.00216.53
7.4.230.0070.00016.41
7.4.220.0060.01316.59
7.4.210.0060.01316.60
7.4.200.0030.00316.64
7.4.160.0000.01616.59
7.4.150.0070.01017.40
7.4.140.0080.01017.86
7.4.130.0090.00816.53
7.4.120.0080.00916.53
7.4.110.0100.00616.42
7.4.100.0070.01016.38
7.4.90.0070.01016.60
7.4.80.0120.01219.39
7.4.70.0080.00816.57
7.4.60.0060.00916.55
7.4.50.0000.00516.46
7.4.40.0090.00616.52
7.4.30.0130.00516.61
7.4.00.0070.00715.05
7.3.330.0000.00513.39
7.3.320.0000.00613.23
7.3.310.0070.00016.26
7.3.300.0070.00016.32
7.3.290.0040.01116.38
7.3.280.0070.01016.36
7.3.270.0100.00617.40
7.3.260.0100.00716.38
7.3.250.0110.00816.40
7.3.240.0090.01316.43
7.3.230.0030.01416.52
7.3.210.0120.00816.38
7.3.200.0070.01019.39
7.3.190.0130.00316.67
7.3.180.0100.01016.24
7.3.170.0090.00616.45
7.3.160.0140.00316.54
7.3.120.0080.00814.84
7.3.10.0070.00716.48
7.3.00.0080.00816.34
7.2.330.0140.00616.82
7.2.320.0140.00316.45
7.2.310.0140.00316.91
7.2.300.0090.00916.82
7.2.290.0110.00716.72
7.2.130.0160.00516.50
7.2.120.0160.00516.29
7.2.110.0160.00816.65
7.2.100.0090.01416.64
7.2.90.0150.00416.76
7.2.80.0060.00916.47
7.2.70.0160.00016.73
7.2.60.0130.00316.79
7.2.50.0100.01017.10
7.2.40.0030.01016.61
7.2.30.0080.00816.76
7.2.20.0030.00916.82
7.2.10.0060.01216.91
7.2.00.0070.00718.04
7.1.250.0160.00615.47
7.1.200.0060.00615.62
7.1.100.0080.00417.89
7.1.70.0000.00716.93
7.1.60.0150.01119.70
7.1.50.0030.02016.76
7.1.00.0030.07722.35
7.0.200.0030.00316.78
7.0.140.0000.07721.97
7.0.60.0030.06320.09
7.0.50.0030.08317.88
7.0.40.0100.03720.02
7.0.30.0400.06720.07
7.0.20.0300.07720.24
7.0.10.0070.10020.22
7.0.00.0130.03320.30
5.6.280.0000.07721.03
5.6.210.0030.06020.72
5.6.200.0100.07318.19
5.6.190.0030.06020.47
5.6.180.0270.07720.63
5.6.170.0300.08720.46
5.6.160.0070.08320.51
5.6.150.0100.07718.27
5.6.140.0100.03718.17
5.6.130.0000.08718.17
5.6.120.0030.05721.15
5.6.110.0070.04021.12
5.6.100.0100.06720.98
5.6.90.0170.06721.00
5.6.80.0070.08320.52
5.5.350.4230.03320.35
5.5.340.0000.09018.07
5.5.330.0000.04720.18
5.5.320.0300.07720.27
5.5.310.0270.07320.35
5.5.300.0030.04018.03
5.5.290.0000.04317.95
5.5.280.0000.09020.80
5.5.270.0070.05320.87
5.5.260.0130.08020.77
5.5.250.0100.06320.70
5.5.240.0270.06720.19
5.4.450.0300.03719.32
5.4.440.0300.08019.38
5.4.430.0400.06019.53
5.4.420.0370.06319.40
5.4.410.0430.06719.14
5.4.400.0270.05019.08
5.4.390.0300.04019.31
5.4.380.0230.04019.14
5.4.370.0270.04019.08
5.4.360.0300.07719.09
5.4.350.0400.05719.09
5.4.340.0430.06319.24
5.4.320.0430.06019.06
5.4.310.0400.05719.12
5.4.300.0530.03318.86
5.4.290.0430.06719.23
5.4.280.0430.06318.88
5.4.270.0330.07019.21
5.4.260.0370.06719.21
5.4.250.0500.05019.14
5.4.240.0430.06318.86
5.4.230.0330.06319.16
5.4.220.0400.07318.87
5.4.210.0370.03718.86
5.4.200.0300.03318.84
5.4.190.0370.04318.83
5.4.180.0430.04018.98
5.4.170.0400.07018.94
5.4.160.0300.08018.96
5.4.150.0330.05719.29
5.4.140.0300.07316.67
5.4.130.0330.06716.35
5.4.120.0300.04716.31
5.4.110.0370.02716.45
5.4.100.0330.07016.56
5.4.90.0470.05316.36
5.4.80.0330.06716.54
5.4.70.0300.07316.24
5.4.60.0300.04316.33
5.4.50.0370.06316.27
5.4.40.0330.05016.26
5.4.30.0330.06716.33
5.4.20.0400.06316.43
5.4.10.0300.06016.34
5.4.00.0330.05715.94
5.3.290.0370.07014.66
5.3.280.0300.04314.75
5.3.270.0330.04314.73
5.3.260.0270.04014.75
5.3.250.0330.07014.68
5.3.240.0470.04014.61
5.3.230.0270.04314.59
5.3.220.0270.03714.64
5.3.210.0300.07014.55
5.3.200.0330.05014.47
5.3.190.0370.07014.54
5.3.180.0370.06714.64
5.3.170.0330.07014.68
5.3.160.0300.04314.64
5.3.150.0400.04014.65
5.3.140.0330.06314.61
5.3.130.0370.05714.63
5.3.120.0230.06014.47
5.3.110.0330.06314.63
5.3.100.0200.04313.96
5.3.90.0230.06714.14
5.3.80.0300.04714.07
5.3.70.0330.04014.25
5.3.60.0370.06314.02
5.3.50.0330.03713.85
5.3.40.0370.06314.07
5.3.30.0330.04313.84
5.3.20.0100.07013.63
5.3.10.0230.03313.58
5.3.00.0370.03313.62
5.2.170.0300.04012.43
5.2.160.0270.04012.43
5.2.150.0330.04312.43
5.2.140.0370.05012.43
5.2.130.0330.05012.43
5.2.120.0300.04712.43
5.2.110.0230.03012.43
5.2.100.0230.04012.43
5.2.90.0370.04712.43
5.2.80.0270.03312.43
5.2.70.0230.02712.43
5.2.60.0300.04012.43
5.2.50.0200.03012.43
5.2.40.0230.04312.43
5.2.30.0200.03012.43
5.2.20.0170.03012.43
5.2.10.0170.03012.43
5.2.00.0230.04712.43
5.1.60.0170.02712.43
5.1.50.0230.04712.43
5.1.40.0300.02712.43
5.1.30.0200.05312.43
5.1.20.0270.03712.43
5.1.10.0270.03712.43
5.1.00.0200.02312.43
5.0.50.0070.03012.43
5.0.40.0070.02712.43
5.0.30.0130.06712.43
5.0.20.0130.02012.43
5.0.10.0230.02312.43
5.0.00.0130.06012.43
4.4.90.0170.02312.43
4.4.80.0100.01712.43
4.4.70.0270.02312.43
4.4.60.0200.02712.43
4.4.50.0100.02712.43
4.4.40.0100.02312.43
4.4.30.0100.02012.43
4.4.20.0130.03012.43
4.4.10.0130.01312.43
4.4.00.0130.04012.43
4.3.110.0130.03012.43
4.3.100.0130.02012.43
4.3.90.0130.02712.43
4.3.80.0100.03712.43
4.3.70.0100.02712.43
4.3.60.0170.01012.43
4.3.50.0070.01712.43
4.3.40.0130.05012.43
4.3.30.0130.02312.43
4.3.20.0070.03012.43
4.3.10.0100.01312.43
4.3.00.0130.02312.43

preferences:
56.47 ms | 400 KiB | 5 Q