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.40.0110.00418.96
8.3.30.0140.00020.04
8.3.20.0040.00418.90
8.3.10.0040.00420.92
8.3.00.0000.00819.67
8.2.170.0120.00322.96
8.2.160.0070.00720.48
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00420.92
8.2.110.0050.00520.28
8.2.100.0000.01217.72
8.2.90.0000.00919.40
8.2.80.0030.00519.21
8.2.70.0000.00917.50
8.2.60.0040.00418.05
8.2.50.0030.00618.07
8.2.40.0030.00519.95
8.2.30.0040.00419.33
8.2.20.0050.00217.73
8.2.10.0050.00217.77
8.2.00.0080.00017.82
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00322.46
8.1.230.0090.00320.89
8.1.220.0000.00818.77
8.1.210.0060.00318.85
8.1.200.0040.00417.23
8.1.190.0050.00317.39
8.1.180.0040.00418.10
8.1.170.0040.00418.66
8.1.160.0000.00818.91
8.1.150.0070.00018.56
8.1.140.0050.00217.46
8.1.130.0070.00017.83
8.1.120.0000.00817.38
8.1.110.0030.00517.47
8.1.100.0000.00817.45
8.1.90.0000.00717.30
8.1.80.0040.00417.33
8.1.70.0030.00317.46
8.1.60.0000.00817.62
8.1.50.0060.00317.40
8.1.40.0030.00617.52
8.1.30.0050.00317.55
8.1.20.0040.00417.69
8.1.10.0000.00717.48
8.1.00.0030.00617.56
8.0.300.0070.00019.89
8.0.290.0000.00817.16
8.0.280.0050.00218.46
8.0.270.0040.00417.19
8.0.260.0030.00316.87
8.0.250.0040.00416.98
8.0.240.0080.00016.90
8.0.230.0000.00716.94
8.0.220.0000.00716.89
8.0.210.0030.00316.83
8.0.200.0000.00616.97
8.0.190.0040.00416.93
8.0.180.0050.00216.84
8.0.170.0000.00816.71
8.0.160.0040.00416.96
8.0.150.0030.00316.82
8.0.140.0000.00716.91
8.0.130.0000.00513.34
8.0.120.0040.00416.78
8.0.110.0030.00516.90
8.0.100.0070.00016.89
8.0.90.0000.00716.93
8.0.80.0130.00316.88
8.0.70.0000.00716.75
8.0.60.0000.00716.90
8.0.50.0050.00317.02
8.0.30.0080.01317.29
8.0.20.0150.00317.40
8.0.10.0000.00816.95
8.0.00.0090.01116.90
7.4.330.0000.00516.77
7.4.320.0080.00016.63
7.4.300.0080.00016.63
7.4.290.0000.00716.62
7.4.280.0030.00316.48
7.4.270.0040.00416.54
7.4.260.0060.00013.33
7.4.250.0040.00416.54
7.4.240.0030.00316.61
7.4.230.0000.00716.68
7.4.220.0040.01816.52
7.4.210.0100.00516.58
7.4.200.0080.00016.71
7.4.190.0050.00216.66
7.4.160.0140.00416.47
7.4.150.0060.01217.40
7.4.140.0110.00717.86
7.4.130.0080.01116.50
7.4.120.0080.00816.61
7.4.110.0060.01616.63
7.4.100.0040.01416.61
7.4.90.0150.00316.66
7.4.80.0070.01019.39
7.4.70.0060.01116.64
7.4.60.0070.01016.59
7.4.50.0000.00916.47
7.4.40.0000.01022.77
7.4.30.0030.01716.75
7.4.00.0120.00015.12
7.3.330.0020.00213.23
7.3.320.0020.00213.31
7.3.310.0000.00816.41
7.3.300.0000.00716.41
7.3.290.0040.01416.36
7.3.280.0090.01216.36
7.3.270.0070.01417.40
7.3.260.0100.01118.24
7.3.250.0160.00216.63
7.3.240.0110.00616.51
7.3.230.0030.01416.39
7.3.210.0040.01216.52
7.3.200.0170.00319.39
7.3.190.0050.01416.29
7.3.180.0060.00916.62
7.3.170.0040.01116.65
7.3.160.0130.00316.39
7.3.120.0100.00315.16
7.2.330.0110.00716.59
7.2.320.0060.01216.70
7.2.310.0130.01016.79
7.2.300.0030.01316.57
7.2.290.0000.01616.80
7.2.60.0060.00616.72
7.2.00.0040.00819.41
7.1.200.0060.01016.04
7.1.100.0030.01017.89
7.1.70.0070.00017.29
7.1.60.0060.01317.40
7.1.50.0080.00316.68
7.1.40.0030.00916.86
7.1.30.0060.00616.75
7.1.20.0060.00616.59
7.1.10.0030.00616.67
7.1.00.0050.00316.60
7.0.200.0040.00416.89
7.0.190.0000.00716.83
7.0.180.0000.00916.31
7.0.170.0040.00416.38
7.0.160.0000.00716.37
7.0.150.0000.01016.27
7.0.140.0030.00516.24
7.0.130.0040.00416.61
7.0.120.0040.00416.60
7.0.110.0050.00316.37
7.0.100.0070.00716.20
7.0.90.0000.01016.44
7.0.80.0040.00416.72
7.0.70.0060.00316.20
7.0.60.0070.00015.99
7.0.50.0040.00416.43
7.0.40.0100.01015.64
7.0.30.0030.01015.64
7.0.20.0070.00015.64
7.0.10.0000.00815.64
7.0.00.0020.00515.64
5.6.300.0070.04620.89
5.6.290.0100.03620.89
5.6.280.0100.03320.87
5.6.270.0000.06321.08
5.6.260.0030.04520.91
5.6.250.0030.04420.81
5.6.240.0030.04420.87
5.6.230.0030.04720.84
5.6.220.0070.04320.86
5.6.210.0070.04020.83
5.6.200.0000.04820.83
5.6.190.0030.04021.05
5.6.180.0070.06120.78
5.6.170.0030.04020.95
5.6.160.0000.06220.83
5.6.150.0130.07520.84
5.6.140.0070.04020.90
5.6.130.0070.05320.92
5.6.120.0030.04320.98
5.6.110.0260.03320.98
5.6.100.0000.04520.84
5.6.90.0070.03721.03
5.6.80.0070.04720.21
5.6.70.0000.07420.36
5.6.60.0030.04020.31
5.6.50.0000.04220.23
5.6.40.0030.03620.14
5.6.30.0060.05120.21
5.6.20.0000.04320.29
5.6.10.0070.04020.18
5.6.00.0000.04520.26
5.5.380.0030.03817.62
5.5.370.0060.03617.61
5.5.360.0070.03717.63
5.5.350.0000.04817.62
5.5.340.0000.04517.74
5.5.330.0070.08018.04
5.5.320.0000.06818.14
5.5.310.0000.04417.70
5.5.300.0030.04618.04
5.5.290.0030.04618.08
5.5.280.0000.04418.09
5.5.270.0030.05218.09
5.5.260.0070.03717.73
5.5.250.0000.05017.89
5.5.240.0030.03817.49
5.5.230.0030.07717.41
5.5.220.0060.03817.21
5.5.210.0000.04417.39
5.5.200.0000.04017.09
5.5.190.0030.04017.21
5.5.180.0030.03917.47
5.5.160.0000.03917.47
5.5.150.0030.07617.41
5.5.140.0030.04417.47
5.5.130.0030.04717.46
5.5.120.0030.03917.52
5.5.110.0040.03517.43
5.5.100.0070.03417.35
5.5.90.0030.03617.27
5.5.80.0000.04817.40
5.5.70.0000.03917.26
5.5.60.0000.04317.08
5.5.50.0030.03617.35
5.5.40.0030.08017.08
5.5.30.0070.05317.26
5.5.20.0070.03617.32
5.5.10.0100.03317.33
5.5.00.0100.05317.25
5.4.450.0060.04419.40
5.4.440.0000.04719.54
5.4.430.0100.03219.27
5.4.420.0070.03919.55
5.4.410.0100.05519.36
5.4.400.0040.03519.07
5.4.390.0000.04119.07
5.4.380.0000.04019.09
5.4.370.0030.03719.21
5.4.360.0030.04219.24
5.4.350.0030.03718.90
5.4.340.0090.03119.11
5.4.320.0000.04319.09
5.4.310.0000.04119.11
5.4.300.0070.03619.04
5.4.290.0030.04019.07
5.4.280.0070.03419.22
5.4.270.0030.03719.20
5.4.260.0030.03918.98
5.4.250.0000.04218.95
5.4.240.0030.07118.89
5.4.230.0100.07319.09
5.4.220.0030.03919.03
5.4.210.0030.03719.22
5.4.200.0000.05319.09
5.4.190.0000.05519.20
5.4.180.0030.03719.14
5.4.170.0100.07419.20
5.4.160.0060.05819.11
5.4.150.0000.04419.06
5.4.140.0030.03816.55
5.4.130.0000.07516.44
5.4.120.0000.04316.45
5.4.110.0000.03916.66
5.4.100.0000.03816.71
5.4.90.0070.03316.77
5.4.80.0000.04516.62
5.4.70.0070.03216.69
5.4.60.0000.03916.41
5.4.50.0030.03516.75
5.4.40.0000.03816.72
5.4.30.0030.04416.68
5.4.20.0060.03516.68
5.4.10.0200.04016.66
5.4.00.0000.04116.13
5.3.290.0030.03915.64
5.3.280.0070.03215.64
5.3.270.0000.04315.64
5.3.260.0030.07415.64
5.3.250.0070.07515.64
5.3.240.0000.03815.64
5.3.230.0030.04415.64
5.3.220.0000.04615.64
5.3.210.0070.04115.64
5.3.200.0000.04115.64
5.3.190.0030.03715.64
5.3.180.0000.04015.64
5.3.170.0030.03915.64
5.3.160.0000.04015.64
5.3.150.0000.03815.64
5.3.140.0030.04715.64
5.3.130.0000.04815.64
5.3.120.0300.04115.64
5.3.110.0000.04115.64
5.3.100.0030.03715.64
5.3.90.0260.03915.64
5.3.80.0100.02915.64
5.3.70.0070.03915.64
5.3.60.0030.03715.64
5.3.50.0030.03315.64
5.3.40.0070.05815.64
5.3.30.0060.03515.64
5.3.20.0100.02615.64
5.3.10.0030.03815.64
5.3.00.0000.03715.64
5.2.170.0070.02415.64
5.2.160.0000.03015.64
5.2.150.0060.02515.64
5.2.140.0130.02615.64
5.2.130.0040.02915.64
5.2.120.0070.02315.64
5.2.110.0000.03115.64
5.2.100.0130.02315.64
5.2.90.0030.04115.64
5.2.80.0060.05815.64
5.2.70.0030.06115.64
5.2.60.0000.04715.64
5.2.50.0000.03115.64
5.2.40.0030.04615.64
5.2.30.0030.03915.64
5.2.20.0000.06215.64
5.2.10.0030.02715.64
5.2.00.0030.02915.64
5.1.60.0030.03715.64
5.1.50.0000.02815.64
5.1.40.0030.02315.64
5.1.30.0040.02515.64
5.1.20.0030.03615.64
5.1.10.0000.03015.64
5.1.00.0000.03015.64
5.0.50.0060.01815.64
5.0.40.0030.02415.64
5.0.30.0000.03115.64
5.0.20.0070.01415.64
5.0.10.0040.01815.64
5.0.00.0170.02415.64
4.4.90.0030.03515.64
4.4.80.0030.01615.64
4.4.70.0000.01915.64
4.4.60.0070.01115.64
4.4.50.0030.01515.64
4.4.40.0000.02615.64
4.4.30.0030.01415.64
4.4.20.0130.01015.64
4.4.10.0030.01315.64
4.4.00.0000.02515.64
4.3.110.0030.01515.64
4.3.100.0000.01715.64
4.3.90.0030.01315.64
4.3.80.0060.02815.64
4.3.70.0000.01615.64
4.3.60.0000.01915.64
4.3.50.0030.01615.64
4.3.40.0000.03115.64
4.3.30.0000.01715.64
4.3.20.0030.01415.64
4.3.10.0000.01715.64
4.3.00.0030.01315.64

preferences:
43.14 ms | 400 KiB | 5 Q