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 . ',' . 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.0110.00718.55
8.3.50.0150.00521.99
8.3.40.0140.00718.79
8.3.30.0100.00320.35
8.3.20.0050.00318.55
8.3.10.0080.00021.27
8.3.00.0030.00519.68
8.2.180.0110.00416.50
8.2.170.0070.00722.96
8.2.160.0100.00720.35
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0080.00021.00
8.2.110.0000.01020.56
8.2.100.0060.00617.91
8.2.90.0040.00419.20
8.2.80.0040.00419.28
8.2.70.0060.00317.63
8.2.60.0000.00817.92
8.2.50.0050.00318.07
8.2.40.0000.00718.31
8.2.30.0070.00319.36
8.2.20.0040.00417.71
8.2.10.0000.00717.64
8.2.00.0090.00017.82
8.1.280.0110.00425.92
8.1.270.0040.00423.99
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0030.00722.59
8.1.230.0040.00720.84
8.1.220.0050.00318.77
8.1.210.0080.00018.89
8.1.200.0100.00017.35
8.1.190.0000.00717.53
8.1.180.0000.00818.10
8.1.170.0000.00818.66
8.1.160.0000.00718.81
8.1.150.0000.00718.70
8.1.140.0000.00717.48
8.1.130.0040.00417.87
8.1.120.0030.00317.45
8.1.110.0070.00017.50
8.1.100.0090.00017.48
8.1.90.0040.00417.44
8.1.80.0050.00317.46
8.1.70.0030.00317.43
8.1.60.0040.00417.51
8.1.50.0040.00417.31
8.1.40.0080.00017.56
8.1.30.0000.00717.64
8.1.20.0090.00017.63
8.1.10.0000.00717.52
8.1.00.0060.00617.41
8.0.300.0050.00219.72
8.0.290.0030.00617.30
8.0.280.0080.00018.41
8.0.270.0030.00317.29
8.0.260.0030.00316.89
8.0.250.0060.00316.98
8.0.240.0060.00516.98
8.0.230.0030.00316.91
8.0.220.0000.00716.95
8.0.210.0040.00416.81
8.0.200.0040.00416.85
8.0.190.0030.00617.05
8.0.180.0000.00816.99
8.0.170.0000.00816.82
8.0.160.0090.00016.88
8.0.150.0040.00416.81
8.0.140.0030.00516.86
8.0.130.0000.00513.43
8.0.120.0000.00816.87
8.0.110.0030.00516.95
8.0.100.0040.00416.74
8.0.90.0000.00816.95
8.0.80.0070.01316.86
8.0.70.0000.00717.02
8.0.60.0070.00016.81
8.0.50.0080.00016.93
8.0.30.0130.00617.05
8.0.20.0070.01317.40
8.0.10.0030.00516.85
8.0.00.0070.01316.75
7.4.330.0050.00015.00
7.4.320.0060.00316.63
7.4.300.0070.00016.54
7.4.290.0000.00616.66
7.4.280.0050.00216.55
7.4.270.0070.00016.48
7.4.260.0030.00313.29
7.4.250.0080.00016.59
7.4.240.0030.00316.54
7.4.230.0070.00016.71
7.4.220.0060.01516.59
7.4.210.0080.00916.64
7.4.200.0040.00416.71
7.4.190.0050.00216.53
7.4.160.0140.00316.69
7.4.150.0100.01017.40
7.4.140.0130.00917.86
7.4.130.0070.01016.50
7.4.120.0060.01116.49
7.4.110.0040.01416.55
7.4.100.0130.01716.61
7.4.90.0090.00916.35
7.4.80.0070.01019.39
7.4.70.0100.00616.54
7.4.60.0040.01416.42
7.4.50.0000.00916.48
7.4.40.0050.00522.77
7.4.30.0170.00016.60
7.4.00.0000.01714.93
7.3.330.0050.00013.29
7.3.320.0000.00613.34
7.3.310.0030.00316.41
7.3.300.0070.00016.32
7.3.290.0040.01116.34
7.3.280.0040.01316.38
7.3.270.0070.01017.40
7.3.260.0110.01018.24
7.3.250.0070.01216.51
7.3.240.0200.00316.32
7.3.230.0150.01316.43
7.3.210.0120.00616.41
7.3.200.0110.01119.39
7.3.190.0090.01316.43
7.3.180.0040.01516.42
7.3.170.0030.01716.42
7.3.160.0140.00716.67
7.3.120.0030.01315.06
7.2.330.0100.00716.60
7.2.320.0070.01016.85
7.2.310.0120.00616.76
7.2.300.0030.01316.84
7.2.290.0070.01016.73
7.2.60.0060.00917.10
7.2.00.0000.01019.25
7.1.200.0030.00615.78
7.1.100.0060.01218.33
7.1.70.0070.00017.21
7.1.60.0100.00617.01
7.1.50.0000.01117.06
7.1.40.0060.00616.86
7.1.30.0080.00416.78
7.1.20.0060.00616.67
7.1.10.0040.00416.56
7.1.00.0060.00316.79
7.0.200.0000.00816.97
7.0.190.0000.00816.83
7.0.180.0030.00616.26
7.0.170.0000.00716.25
7.0.160.0030.00516.58
7.0.150.0000.00816.47
7.0.140.0000.00816.19
7.0.130.0120.00016.47
7.0.120.0030.00716.68
7.0.110.0030.00616.58
7.0.100.0030.01316.34
7.0.90.0030.00516.62
7.0.80.0000.00816.37
7.0.70.0000.01316.61
7.0.60.0050.00516.14
7.0.50.0000.00816.31
7.0.40.0040.00415.21
7.0.30.0050.00215.21
7.0.20.0000.01415.21
7.0.10.0040.00415.21
7.0.00.0040.00415.21
5.6.300.0030.04320.93
5.6.290.0070.03720.68
5.6.280.0000.04420.89
5.6.270.0030.04820.88
5.6.260.0100.06921.00
5.6.250.0070.05921.04
5.6.240.0060.03820.86
5.6.230.0070.03920.98
5.6.220.0000.04420.85
5.6.210.0060.04220.62
5.6.200.0100.04420.84
5.6.190.0070.04321.06
5.6.180.0000.04520.92
5.6.170.0130.04220.96
5.6.160.0030.04520.84
5.6.150.0030.06220.97
5.6.140.0030.04221.00
5.6.130.0070.03720.88
5.6.120.0030.04520.85
5.6.110.0070.04020.77
5.6.100.0060.03920.81
5.6.90.0000.04920.72
5.6.80.0000.04220.21
5.6.70.0030.04920.14
5.6.60.0030.04720.15
5.6.50.0030.04320.21
5.6.40.0000.04920.39
5.6.30.0040.03920.20
5.6.20.0070.04020.21
5.6.10.0000.04520.41
5.6.00.0060.03520.36
5.5.380.0070.03717.49
5.5.370.0000.04517.67
5.5.360.0000.04117.51
5.5.350.0030.07417.60
5.5.340.0130.04618.00
5.5.330.0100.03418.04
5.5.320.0030.04017.84
5.5.310.0040.03918.18
5.5.300.0030.04418.19
5.5.290.0030.06717.74
5.5.280.0000.04417.70
5.5.270.0070.03718.07
5.5.260.0030.04317.73
5.5.250.0030.04517.91
5.5.240.0000.04717.48
5.5.230.0100.07917.12
5.5.220.0040.04217.08
5.5.210.0000.04417.40
5.5.200.0000.04417.20
5.5.190.0000.04217.19
5.5.180.0030.04517.43
5.5.160.0000.04217.49
5.5.150.0070.03717.41
5.5.140.0060.03817.44
5.5.130.0040.04217.39
5.5.120.0070.03917.36
5.5.110.0000.04517.05
5.5.100.0130.05517.26
5.5.90.0060.06517.00
5.5.80.0000.03817.11
5.5.70.0000.04017.38
5.5.60.0030.07517.28
5.5.50.0000.04117.34
5.5.40.0070.04017.33
5.5.30.0000.04717.33
5.5.20.0000.04116.95
5.5.10.0060.03417.33
5.5.00.0030.05917.09
5.4.450.0160.04219.36
5.4.440.0030.03819.25
5.4.430.0000.04419.25
5.4.420.0100.04119.48
5.4.410.0060.03819.13
5.4.400.0030.06718.91
5.4.390.0160.04619.04
5.4.380.0030.03919.14
5.4.370.0070.03719.04
5.4.360.0030.04119.19
5.4.350.0030.03919.02
5.4.340.0000.04319.04
5.4.320.0070.03419.01
5.4.310.0000.03918.99
5.4.300.0340.02419.21
5.4.290.0030.03918.95
5.4.280.0000.04118.98
5.4.270.0040.05019.04
5.4.260.0130.04219.00
5.4.250.0070.06018.93
5.4.240.0000.04519.11
5.4.230.0100.06519.04
5.4.220.0030.05319.07
5.4.210.0000.04918.89
5.4.200.0060.04218.93
5.4.190.0070.03719.01
5.4.180.0030.05219.06
5.4.170.0000.04319.01
5.4.160.0100.03019.18
5.4.150.0070.06118.96
5.4.140.0060.03616.73
5.4.130.0030.03416.46
5.4.120.0000.03716.74
5.4.110.0070.03416.55
5.4.100.0060.03216.69
5.4.90.0040.03916.73
5.4.80.0030.03516.73
5.4.70.0030.03416.55
5.4.60.0060.03116.57
5.4.50.0030.03516.56
5.4.40.0000.03716.77
5.4.30.0000.06416.44
5.4.20.0130.05416.72
5.4.10.0070.03716.55
5.4.00.0030.03316.21
5.3.290.0070.03815.21
5.3.280.0030.03615.21
5.3.270.0100.03515.21
5.3.260.0030.04115.21
5.3.250.0000.04615.21
5.3.240.0000.05415.21
5.3.230.0040.03515.21
5.3.220.0000.03915.21
5.3.210.0000.04015.21
5.3.200.0000.03915.21
5.3.190.0000.03915.21
5.3.180.0030.05315.21
5.3.170.0000.04215.21
5.3.160.0000.05015.21
5.3.150.0070.03315.21
5.3.140.0000.03915.21
5.3.130.0030.03615.21
5.3.120.0000.03915.21
5.3.110.0030.03715.21
5.3.100.0000.06515.21
5.3.90.0000.08215.21
5.3.80.0070.06115.21
5.3.70.0070.03015.21
5.3.60.0070.03115.21
5.3.50.0030.03315.21
5.3.40.0070.03415.21
5.3.30.0030.03615.21
5.3.20.0030.03515.21
5.3.10.0030.03615.21
5.3.00.0030.03515.21
5.2.170.0000.04115.21
5.2.160.0000.03215.21
5.2.150.0030.02815.21
5.2.140.0070.02615.21
5.2.130.0030.02715.21
5.2.120.0000.03015.21
5.2.110.0000.03415.21
5.2.100.0000.03015.21
5.2.90.0040.02515.21
5.2.80.0000.03415.21
5.2.70.0030.02715.21
5.2.60.0030.02815.21
5.2.50.0030.02715.21
5.2.40.0030.02615.21
5.2.30.0000.03015.21
5.2.20.0040.03215.21
5.2.10.0030.02615.21
5.2.00.0030.03115.21
5.1.60.0000.02715.21
5.1.50.0030.02715.21
5.1.40.0000.02815.21
5.1.30.0000.03015.21
5.1.20.0060.02115.21
5.1.10.0030.02615.21
5.1.00.0000.02615.21
5.0.50.0060.01515.21
5.0.40.0030.01915.21
5.0.30.0000.03215.21
5.0.20.0070.01415.21
5.0.10.0030.01815.21
5.0.00.0000.03415.21
4.4.90.0040.01815.21
4.4.80.0030.01515.21
4.4.70.0000.01815.21
4.4.60.0000.01615.21
4.4.50.0120.00915.21
4.4.40.0000.02515.21
4.4.30.0040.01515.21
4.4.20.0030.01315.21
4.4.10.0000.01615.21
4.4.00.0030.02215.21
4.3.110.0030.01315.21
4.3.100.0000.01615.21
4.3.90.0000.01915.21
4.3.80.0040.02115.21
4.3.70.0060.00915.21
4.3.60.0040.01515.21
4.3.50.0030.01515.21
4.3.40.0000.02515.21
4.3.30.0030.01315.21
4.3.20.0000.01715.21
4.3.10.0030.01515.21
4.3.00.0060.02215.21

preferences:
42.61 ms | 401 KiB | 5 Q