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 = "POST\n\n1306dc69-eb2f-493d-fc98-f4e693829367\n1328a7fe-e451-8780-d201-0c5d9a1fc02b\n2013-09-30T10:46:38.993Z\n2cdae256-750f-4cc8-bbde-b35018bf8ceb\n/provision/provision\n{\"instance-id\":\"1328a7fe-e451-8780-d201-0c5d9a1fc02b\"}"; // 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.0170.00318.39
8.3.50.0140.00822.11
8.3.40.0070.01018.86
8.3.30.0160.00720.25
8.3.20.0080.00018.60
8.3.10.0080.00021.27
8.3.00.0080.00019.65
8.2.180.0030.01516.75
8.2.170.0090.00622.96
8.2.160.0030.01020.37
8.2.150.0050.00324.18
8.2.140.0000.00924.66
8.2.130.0070.00026.16
8.2.120.0080.00019.64
8.2.110.0050.00520.13
8.2.100.0120.00018.03
8.2.90.0040.00419.34
8.2.80.0080.00019.28
8.2.70.0110.00017.63
8.2.60.0000.00818.16
8.2.50.0000.00818.07
8.2.40.0000.00920.07
8.2.30.0070.00019.52
8.2.20.0000.00817.78
8.2.10.0080.00017.77
8.2.00.0030.00517.67
8.1.280.0070.01025.92
8.1.270.0000.00723.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.54
8.1.230.0070.00420.90
8.1.220.0040.00418.77
8.1.210.0080.00018.85
8.1.200.0040.00417.35
8.1.190.0060.00317.43
8.1.180.0040.00418.10
8.1.170.0040.00418.66
8.1.160.0000.00718.92
8.1.150.0040.00418.59
8.1.140.0030.00517.47
8.1.130.0070.00017.76
8.1.120.0040.00717.48
8.1.110.0020.00517.44
8.1.100.0030.00517.38
8.1.90.0050.00317.45
8.1.80.0000.00717.45
8.1.70.0000.00717.40
8.1.60.0030.00617.61
8.1.50.0060.00317.41
8.1.40.0040.00417.56
8.1.30.0080.00017.66
8.1.20.0040.00417.67
8.1.10.0040.00417.61
8.1.00.0040.00817.39
8.0.300.0040.00419.94
8.0.290.0050.00317.18
8.0.280.0000.00718.48
8.0.270.0030.00317.32
8.0.260.0030.00616.89
8.0.250.0030.00616.99
8.0.240.0000.00716.98
8.0.230.0000.00816.96
8.0.220.0000.00716.77
8.0.210.0030.00316.80
8.0.200.0030.00316.98
8.0.190.0030.00317.00
8.0.180.0070.00016.77
8.0.170.0040.00416.79
8.0.160.0000.00716.92
8.0.150.0070.00016.93
8.0.140.0040.00416.90
8.0.130.0030.00313.37
8.0.120.0040.00416.74
8.0.110.0040.00316.77
8.0.100.0040.00416.89
8.0.90.0040.00416.80
8.0.80.0060.01016.85
8.0.70.0000.00716.73
8.0.60.0040.00416.76
8.0.50.0040.00416.78
8.0.30.0080.01017.07
8.0.20.0060.01717.40
8.0.10.0050.00317.01
8.0.00.0070.01316.75
7.4.330.0050.00016.85
7.4.320.0050.00316.48
7.4.300.0030.00316.56
7.4.290.0040.00416.41
7.4.280.0000.00716.57
7.4.270.0030.00316.47
7.4.260.0000.00513.23
7.4.250.0070.00016.45
7.4.240.0050.00216.55
7.4.230.0000.00716.44
7.4.220.0090.00916.55
7.4.210.0070.00916.50
7.4.200.0040.00416.35
7.4.190.0040.00416.65
7.4.160.0080.00816.32
7.4.150.0030.01517.40
7.4.140.0100.00817.86
7.4.130.0070.01016.49
7.4.120.0080.01016.54
7.4.110.0110.00916.40
7.4.100.0080.01216.34
7.4.90.0140.00516.44
7.4.80.0120.01219.39
7.4.70.0130.00316.64
7.4.60.0070.01016.47
7.4.50.0000.00516.43
7.4.40.0090.00622.77
7.4.30.0030.01716.24
7.4.00.0090.00614.98
7.3.330.0030.00313.20
7.3.320.0050.00013.40
7.3.310.0040.00416.43
7.3.300.0000.00716.27
7.3.290.0100.00316.31
7.3.280.0040.01416.27
7.3.270.0060.01217.40
7.3.260.0130.00918.24
7.3.250.0090.00916.39
7.3.240.0110.00716.32
7.3.230.0100.00616.55
7.3.210.0100.00716.58
7.3.200.0130.01219.39
7.3.190.0070.01016.54
7.3.180.0120.01216.28
7.3.170.0060.01016.56
7.3.160.0060.01116.39
7.3.120.0030.00914.72
7.3.10.0060.00616.48
7.3.00.0100.00716.75
7.2.330.0070.01116.72
7.2.320.0130.00316.69
7.2.310.0130.01116.47
7.2.300.0130.00316.48
7.2.290.0130.00316.67
7.2.130.0110.00716.83
7.2.120.0070.00717.06
7.2.110.0100.01716.99
7.2.100.0070.00716.80
7.2.90.0100.00316.66
7.2.80.0130.01016.74
7.2.70.0060.00616.66
7.2.60.0060.00616.88
7.2.50.0130.01016.98
7.2.40.0000.01616.88
7.2.30.0200.00717.04
7.2.20.0000.01416.90
7.2.10.0070.01016.73
7.2.00.0080.00618.14
7.1.250.0000.01415.76
7.1.200.0000.01215.96
7.1.100.0090.00318.02
7.1.70.0000.00716.91
7.1.60.0040.01417.30
7.1.50.0060.00616.98
7.1.40.0030.00916.67
7.1.30.0190.00016.66
7.1.20.0040.00716.69
7.1.10.0000.00816.34
7.1.00.0030.00616.61
7.0.200.0080.00816.79
7.0.190.0040.00416.84
7.0.180.0050.00516.30
7.0.170.0030.00616.48
7.0.160.0000.00916.02
7.0.150.0040.00416.33
7.0.140.0070.00316.39
7.0.130.0070.00016.49
7.0.120.0040.00816.37
7.0.110.0000.00716.25
7.0.100.0070.00416.48
7.0.90.0060.00616.11
7.0.80.0000.02316.46
7.0.70.0000.00716.39
7.0.60.0030.01316.22
7.0.50.0040.00716.37
7.0.40.0050.00516.02
7.0.30.0000.00816.02
7.0.20.0000.00816.02
7.0.10.0000.00716.02
7.0.00.0060.00316.02
5.6.300.0030.03920.66
5.6.290.0000.05420.94
5.6.280.0000.05420.87
5.6.270.0030.04220.86
5.6.260.0070.05820.80
5.6.250.0070.05420.84
5.6.240.0070.03921.01
5.6.230.0000.06020.83
5.6.220.0060.04520.82
5.6.210.0070.05020.59
5.6.200.0100.03820.95
5.6.190.0030.04720.77
5.6.180.0000.04620.91
5.6.170.0000.04620.80
5.6.160.0060.03620.82
5.6.150.0030.04420.78
5.6.140.0030.04520.75
5.6.130.0130.04020.94
5.6.120.0070.09220.97
5.6.110.0030.04920.80
5.6.100.0100.03620.99
5.6.90.0100.06220.96
5.6.80.0030.05120.32
5.6.70.0070.04420.38
5.6.60.0040.03920.27
5.6.50.0030.05820.38
5.6.40.0070.06020.34
5.6.30.0030.03920.14
5.6.20.0030.04120.17
5.6.10.0030.04020.23
5.6.00.0000.04520.32
5.5.380.0030.03817.49
5.5.370.0000.04217.65
5.5.360.0030.05217.46
5.5.350.0030.04417.53
5.5.340.0060.03817.98
5.5.330.0030.04217.83
5.5.320.0000.04218.09
5.5.310.0090.03417.98
5.5.300.0070.03518.09
5.5.290.0000.05418.05
5.5.280.0060.04518.09
5.5.270.0000.08718.13
5.5.260.0070.08218.17
5.5.250.0060.08117.90
5.5.240.0100.05417.45
5.5.230.0070.03517.51
5.5.220.0030.03817.46
5.5.210.0030.08017.08
5.5.200.0030.03617.42
5.5.190.0030.04117.35
5.5.180.0030.04417.40
5.5.160.0000.04817.52
5.5.150.0060.03517.48
5.5.140.0030.04017.05
5.5.130.0100.04517.40
5.5.120.0030.07917.35
5.5.110.0000.04317.34
5.5.100.0030.04217.31
5.5.90.0100.03217.30
5.5.80.0070.03617.31
5.5.70.0060.03816.94
5.5.60.0030.03817.32
5.5.50.0000.05017.27
5.5.40.0070.03817.32
5.5.30.0070.03717.06
5.5.20.0100.04117.22
5.5.10.0000.05217.37
5.5.00.0030.04117.09
5.4.450.0030.08619.30
5.4.440.0000.08719.34
5.4.430.0000.05419.24
5.4.420.0060.05219.38
5.4.410.0000.04419.26
5.4.400.0030.05419.14
5.4.390.0030.04319.04
5.4.380.0030.04819.23
5.4.370.0070.03519.09
5.4.360.0030.04019.12
5.4.350.0030.06319.24
5.4.340.0030.04019.18
5.4.320.0000.05019.17
5.4.310.0000.04619.05
5.4.300.0200.03419.06
5.4.290.0000.04218.89
5.4.280.0030.03719.04
5.4.270.0100.06819.20
5.4.260.0000.04218.98
5.4.250.0030.04019.07
5.4.240.0110.03519.14
5.4.230.0000.07619.07
5.4.220.0030.04418.96
5.4.210.0030.03819.12
5.4.200.0030.03719.22
5.4.190.0000.05019.17
5.4.180.0060.07119.10
5.4.170.0000.04018.96
5.4.160.0000.04218.99
5.4.150.0130.03918.92
5.4.140.0000.04216.50
5.4.130.0000.04616.45
5.4.120.0000.03916.76
5.4.110.0100.05716.48
5.4.100.0070.06716.48
5.4.90.0030.04516.71
5.4.80.0030.03716.76
5.4.70.0030.03416.62
5.4.60.0030.05016.75
5.4.50.0030.04016.52
5.4.40.0000.04316.66
5.4.30.0000.03616.45
5.4.20.0170.03416.60
5.4.10.0040.05016.75
5.4.00.0030.04116.12
5.3.290.0330.03916.02
5.3.280.0030.04616.02
5.3.270.0030.04716.02
5.3.260.0000.04016.02
5.3.250.0070.04616.02
5.3.240.0030.03716.02
5.3.230.0070.03216.02
5.3.220.0060.05416.02
5.3.210.0000.03916.02
5.3.200.0070.03316.02
5.3.190.0030.04516.02
5.3.180.0070.03316.02
5.3.170.0100.03216.02
5.3.160.0030.03516.02
5.3.150.0030.03716.02
5.3.140.0090.03516.02
5.3.130.0030.04616.02
5.3.120.0030.04816.02
5.3.110.0030.04416.02
5.3.100.0070.03816.02
5.3.90.0170.05116.02
5.3.80.0030.04316.02
5.3.70.0070.03816.02
5.3.60.0000.04816.02
5.3.50.0030.04016.02
5.3.40.0030.05316.02
5.3.30.0030.03816.02
5.3.20.0030.03416.02
5.3.10.0000.04116.02
5.3.00.0000.04616.02
5.2.170.0060.02816.02
5.2.160.0070.02316.02
5.2.150.0070.04216.02
5.2.140.0070.02616.02
5.2.130.0000.03116.02
5.2.120.0030.03116.02
5.2.110.0040.04616.02
5.2.100.0040.03616.02
5.2.90.0100.02516.02
5.2.80.0000.03516.02
5.2.70.0000.03816.02
5.2.60.0100.02716.02
5.2.50.0030.02816.02
5.2.40.0030.03116.02
5.2.30.0030.05014.70
5.2.20.0000.04514.70
5.2.10.0000.03114.70
5.2.00.0000.04014.70
5.1.60.0060.02514.70
5.1.50.0000.02714.70
5.1.40.0030.02514.70
5.1.30.0060.03214.70
5.1.20.0000.03214.70
5.1.10.0060.02314.70
5.1.00.0000.03114.70
5.0.50.0030.01914.70
5.0.40.0060.01514.70
5.0.30.0030.03114.70
5.0.20.0000.02214.70
5.0.10.0030.01814.70
5.0.00.0090.02214.70
4.4.90.0000.02116.02
4.4.80.0040.01416.02
4.4.70.0000.01814.70
4.4.60.0030.01414.70
4.4.50.0000.01614.70
4.4.40.0000.02814.70
4.4.30.0000.02014.70
4.4.20.0000.01614.70
4.4.10.0000.01914.70
4.4.00.0000.02814.70
4.3.110.0000.01914.70
4.3.100.0000.01714.70
4.3.90.0030.01914.70
4.3.80.0000.02514.70
4.3.70.0090.01614.70
4.3.60.0030.02114.70
4.3.50.0030.01414.70
4.3.40.0030.02314.70
4.3.30.0000.01814.70
4.3.20.0030.02314.70
4.3.10.0000.01714.70
4.3.00.0000.01714.70

preferences:
49.98 ms | 401 KiB | 5 Q