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.0070.01018.21
8.3.50.0140.00722.11
8.3.40.0060.01218.79
8.3.30.0000.01420.33
8.3.20.0000.00818.73
8.3.10.0080.00021.08
8.3.00.0040.00419.69
8.2.180.0060.01516.88
8.2.170.0080.00822.96
8.2.160.0130.00020.35
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0030.00717.75
8.2.110.0000.01020.56
8.2.100.0080.00417.91
8.2.90.0080.00018.99
8.2.80.0040.00419.34
8.2.70.0040.00717.60
8.2.60.0070.00018.04
8.2.50.0090.00018.07
8.2.40.0040.00418.16
8.2.30.0030.00621.29
8.2.20.0040.00417.72
8.2.10.0040.00417.76
8.2.00.0030.00517.75
8.1.280.0130.00625.92
8.1.270.0040.00422.19
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.46
8.1.230.0080.00320.88
8.1.220.0030.00618.77
8.1.210.0060.00319.03
8.1.200.0040.00417.35
8.1.190.0040.00417.39
8.1.180.0040.00418.10
8.1.170.0040.00418.64
8.1.160.0070.00018.82
8.1.150.0040.00418.60
8.1.140.0000.00717.38
8.1.130.0000.00717.91
8.1.120.0070.00317.45
8.1.110.0000.00717.47
8.1.100.0000.00917.53
8.1.90.0000.00717.37
8.1.80.0000.00717.38
8.1.70.0000.00717.48
8.1.60.0000.00817.63
8.1.50.0050.00317.50
8.1.40.0000.00817.42
8.1.30.0030.00517.72
8.1.20.0030.00517.61
8.1.10.0040.00417.53
8.1.00.0070.00317.50
8.0.300.0080.00019.93
8.0.290.0000.00817.05
8.0.280.0000.00818.48
8.0.270.0070.00017.21
8.0.260.0000.00716.83
8.0.250.0040.00417.00
8.0.240.0030.00616.88
8.0.230.0000.00817.03
8.0.220.0070.00016.97
8.0.210.0000.00716.94
8.0.200.0000.00616.94
8.0.190.0000.00716.80
8.0.180.0040.00416.99
8.0.170.0030.00316.93
8.0.160.0000.00716.84
8.0.150.0070.00016.86
8.0.140.0030.00516.85
8.0.130.0060.00013.29
8.0.120.0040.00416.76
8.0.110.0000.00716.93
8.0.100.0070.00016.93
8.0.90.0050.00316.69
8.0.80.0060.01016.82
8.0.70.0040.00416.84
8.0.60.0000.00716.72
8.0.50.0000.00716.84
8.0.30.0110.00717.06
8.0.20.0110.01117.40
8.0.10.0040.00416.84
8.0.00.0060.01116.62
7.4.330.0030.00316.83
7.4.320.0000.00716.38
7.4.300.0030.00316.62
7.4.290.0000.00716.41
7.4.280.0000.00716.44
7.4.270.0000.00816.38
7.4.260.0060.00013.26
7.4.250.0050.00216.32
7.4.240.0040.00416.49
7.4.230.0040.00416.41
7.4.220.0090.00916.44
7.4.210.0060.01016.54
7.4.200.0040.00416.36
7.4.190.0000.00716.52
7.4.160.0120.01216.50
7.4.150.0120.00617.40
7.4.140.0090.00817.86
7.4.130.0060.01216.59
7.4.120.0080.00916.51
7.4.110.0060.01116.34
7.4.100.0110.00716.61
7.4.90.0150.00916.54
7.4.80.0110.00719.39
7.4.70.0100.00716.55
7.4.60.0080.00816.29
7.4.50.0030.00616.47
7.4.40.0070.01122.77
7.4.30.0060.01216.46
7.4.10.0060.00816.16
7.4.00.0080.00815.79
7.3.330.0050.00013.37
7.3.320.0000.00513.45
7.3.310.0000.00716.25
7.3.300.0040.00416.33
7.3.290.0080.00516.29
7.3.280.0050.01116.32
7.3.270.0100.00917.40
7.3.260.0110.00818.24
7.3.250.0110.00616.47
7.3.240.0070.01016.33
7.3.230.0000.01616.51
7.3.210.0070.01016.45
7.3.200.0090.01319.39
7.3.190.0100.00716.58
7.3.180.0110.00616.58
7.3.170.0100.00616.54
7.3.160.0120.00416.66
7.3.130.0100.01016.41
7.3.120.0070.01115.65
7.3.110.0100.00716.53
7.3.100.0090.00616.31
7.3.90.0060.00916.42
7.3.80.0070.00416.45
7.3.70.0100.01016.31
7.3.60.0110.00716.26
7.3.50.0060.00616.27
7.3.40.0000.01116.38
7.3.30.0100.00716.34
7.3.20.0090.00618.30
7.3.10.0090.00618.05
7.3.00.0070.01018.09
7.2.330.0030.01416.86
7.2.320.0030.01716.65
7.2.310.0120.00916.70
7.2.300.0100.00716.61
7.2.290.0100.01016.80
7.2.260.0060.01316.55
7.2.250.0040.01516.76
7.2.240.0090.00916.43
7.2.230.0090.00616.84
7.2.220.0040.01216.41
7.2.210.0060.01216.64
7.2.200.0000.01616.73
7.2.190.0040.01516.56
7.2.180.0060.01016.48
7.2.170.0110.00716.71
7.2.160.0080.00816.44
7.2.150.0120.00318.43
7.2.140.0000.01518.41
7.2.130.0030.01418.36
7.2.120.0130.00318.50
7.2.110.0030.01018.26
7.2.100.0070.00318.49
7.2.90.0030.01218.46
7.2.80.0120.00418.43
7.2.70.0040.00718.41
7.2.60.0070.01018.54
7.2.50.0070.01118.36
7.2.40.0070.00718.29
7.2.30.0120.00418.28
7.2.20.0150.00618.43
7.2.10.0090.00418.27
7.2.00.0010.00919.12
7.1.330.0030.01317.48
7.1.320.0060.00917.38
7.1.310.0060.01217.41
7.1.300.0060.00617.32
7.1.290.0090.00017.23
7.1.280.0060.01017.22
7.1.270.0090.00617.36
7.1.260.0080.00817.32
7.1.250.0070.01017.41
7.1.240.0090.00917.21
7.1.230.0080.00817.25
7.1.220.0050.00517.21
7.1.210.0030.01517.14
7.1.200.0060.00617.27
7.1.190.0040.00717.50
7.1.180.0070.00717.48
7.1.170.0070.00717.44
7.1.160.0040.00417.22
7.1.150.0100.00717.33
7.1.140.0060.00917.22
7.1.130.0030.01017.34
7.1.120.0060.00317.48
7.1.110.0060.00917.30
7.1.100.0060.00817.79
7.1.90.0100.00317.27
7.1.80.0080.00817.34
7.1.70.0070.00517.13
7.1.60.0040.00917.33
7.1.50.0070.00817.17
7.1.40.0060.00516.88
7.1.30.0040.00617.06
7.1.20.0030.01117.08
7.1.10.0020.00817.15
7.1.00.0060.00916.98
7.0.330.0000.01617.00
7.0.320.0080.00416.90
7.0.310.0000.01616.76
7.0.300.0040.01117.05
7.0.290.0040.00716.70
7.0.280.0140.00017.20
7.0.270.0000.01217.11
7.0.260.0030.01016.84
7.0.250.0040.01216.89
7.0.240.0000.01417.26
7.0.230.0070.00717.03
7.0.220.0080.00417.04
7.0.210.0060.00617.07
7.0.200.0080.00516.88
7.0.190.0040.00416.75
7.0.180.0060.00516.59
7.0.170.0060.00516.66
7.0.160.0020.01016.56
7.0.150.0020.00916.67
7.0.140.0020.00916.77
7.0.130.0060.00816.80
7.0.120.0020.01116.71
7.0.110.0030.00916.66
7.0.100.0060.00716.69
7.0.90.0000.00916.64
7.0.80.0060.00516.71
7.0.70.0050.00716.69
7.0.60.0040.01116.42
7.0.50.0060.00816.74
7.0.40.0030.01215.15
7.0.30.0060.00615.25
7.0.20.0010.01015.23
7.0.10.0060.00515.19
7.0.00.0070.00615.15
5.6.400.0090.00615.70
5.6.390.0030.01516.35
5.6.380.0060.00615.93
5.6.370.0070.01016.16
5.6.360.0030.01015.82
5.6.350.0060.00616.29
5.6.340.0130.00716.00
5.6.330.0070.00716.29
5.6.320.0070.01115.95
5.6.310.0100.00616.04
5.6.300.0030.02818.30
5.6.290.0090.02018.43
5.6.280.0020.02918.28
5.6.270.0050.02518.42
5.6.260.0050.02618.30
5.6.250.0060.03018.34
5.6.240.0050.02318.45
5.6.230.0050.02618.33
5.6.220.0040.02618.31
5.6.210.0090.02518.27
5.6.200.0070.02918.41
5.6.190.0050.03318.52
5.6.180.0030.03318.43
5.6.170.0090.01818.40
5.6.160.0060.02518.50
5.6.150.0080.02118.35
5.6.140.0050.04418.33
5.6.130.0070.03118.36
5.6.120.0030.02718.31
5.6.110.0070.02418.32
5.6.100.0070.02518.54
5.6.90.0030.03518.31
5.6.80.0060.04318.17
5.6.70.0060.02018.13
5.6.60.0000.02718.17
5.6.50.0020.04218.11
5.6.40.0070.02418.03
5.6.30.0080.04117.99
5.6.20.0100.04118.07
5.6.10.0020.05118.01
5.6.00.0100.04018.03
5.5.380.0020.02516.67
5.5.370.0030.02416.86
5.5.360.0050.04516.82
5.5.350.0000.03016.79
5.5.340.0050.02816.98
5.5.330.0050.03516.86
5.5.320.0070.02416.94
5.5.310.0030.02716.96
5.5.300.0060.04316.72
5.5.290.0170.01916.95
5.5.280.0080.01817.03
5.5.270.0070.04316.97
5.5.260.0060.02116.97
5.5.250.0050.04516.91
5.5.240.0030.02816.55
5.5.230.0060.02416.62
5.5.220.0070.02016.64
5.5.210.0020.02416.65
5.5.200.0030.03816.68
5.5.190.0060.04516.46
5.5.180.0050.04216.67
5.5.170.0000.01115.71
5.5.160.0070.04016.58
5.5.150.0070.03116.52
5.5.140.0050.02116.55
5.5.130.0020.03816.52
5.5.120.0050.04316.58
5.5.110.0030.03216.56
5.5.100.0080.02316.24
5.5.90.0050.02316.56
5.5.80.0020.02316.58
5.5.70.0020.02316.62
5.5.60.0020.03216.57
5.5.50.0020.02616.55
5.5.40.0020.02416.36
5.5.30.0030.03516.49
5.5.20.0060.02116.44
5.5.10.0050.03516.33
5.5.00.0090.01616.50
5.4.450.0000.02916.19
5.4.440.0030.02816.15
5.4.430.0050.03616.17
5.4.420.0050.03516.08
5.4.410.0050.02215.93
5.4.400.0050.02215.84
5.4.390.0080.01915.92
5.4.380.0070.02115.92
5.4.370.0050.03515.84
5.4.360.0030.02615.96
5.4.350.0030.03915.92
5.4.340.0070.03915.89
5.4.330.0030.00512.73
5.4.320.0110.03515.92
5.4.310.0000.03115.91
5.4.300.0110.02015.95
5.4.290.0030.02615.82
5.4.280.0030.04115.89
5.4.270.0020.04015.90
5.4.260.0080.02115.97
5.4.250.0060.04015.86
5.4.240.0030.02315.94
5.4.230.0020.02115.75
5.4.220.0050.02215.76
5.4.210.0040.02615.87
5.4.200.0050.02015.90
5.4.190.0030.02215.92
5.4.180.0060.03115.87
5.4.170.0040.02015.79
5.4.160.0030.02215.82
5.4.150.0050.04215.79
5.4.140.0040.03214.74
5.4.130.0080.02214.87
5.4.120.0020.02114.74
5.4.110.0080.02314.73
5.4.100.0030.02014.66
5.4.90.0030.03114.67
5.4.80.0050.01914.74
5.4.70.0050.03914.69
5.4.60.0000.02614.56
5.4.50.0050.03014.62
5.4.40.0050.02614.76
5.4.30.0060.03514.79
5.4.20.0040.02114.55
5.4.10.0140.01814.74
5.4.00.0020.02314.41
5.3.290.0030.03714.36
5.3.280.0020.02514.26
5.3.270.0020.03314.43
5.3.260.0000.03314.30
5.3.250.0000.04114.29
5.3.240.0040.03914.29
5.3.230.0050.03614.20
5.3.220.0030.02914.17
5.3.210.0020.02314.19
5.3.200.0020.03214.20
5.3.190.0000.02614.25
5.3.180.0030.02414.41
5.3.170.0030.02714.33
5.3.160.0000.02614.26
5.3.150.0030.03814.31
5.3.140.0030.03214.32
5.3.130.0060.03314.31
5.3.120.0030.03814.30
5.3.110.0040.02114.32
5.3.100.0020.02114.22
5.3.90.0050.02514.32
5.3.80.0020.02614.12
5.3.70.0040.02414.21
5.3.60.0000.02914.28
5.3.50.0080.01814.32
5.3.40.0020.02514.31
5.3.30.0050.02414.28
5.3.20.0050.02214.17
5.3.10.0020.02314.26
5.3.00.0080.01914.09
5.2.170.0100.02815.54
5.2.160.0040.03915.54
5.2.150.0030.03115.54
5.2.140.0000.03215.54
5.2.130.0030.04215.54
5.2.120.0070.02715.54
5.2.110.0030.02815.54
5.2.100.0030.03315.54
5.2.90.0030.03015.54
5.2.80.0040.02815.54
5.2.70.0000.03115.54
5.2.60.0130.03415.54
5.2.50.0000.03715.54
5.2.40.0000.03115.54
5.2.30.0030.02815.54
5.2.20.0040.02815.54
5.2.10.0030.03615.54
5.2.00.0140.04115.54
5.1.60.0030.02415.54
5.1.50.0000.02615.54
5.1.40.0030.02415.54
5.1.30.0040.02815.54
5.1.20.0000.04015.54
5.1.10.0090.02015.54
5.1.00.0060.02515.54
5.0.50.0030.01915.54
5.0.40.0030.02115.54
5.0.30.0030.03115.54
5.0.20.0040.01815.54
5.0.10.0000.02415.54
5.0.00.0030.03015.54
4.4.90.0040.01415.54
4.4.80.0000.02015.54
4.4.70.0000.01615.54
4.4.60.0030.01415.54
4.4.50.0100.01015.54
4.4.40.0060.02015.54
4.4.30.0000.02615.54
4.4.20.0030.01715.54
4.4.10.0030.02015.54
4.4.00.0040.03415.54
4.3.110.0040.01515.54
4.3.100.0040.01515.54
4.3.90.0000.01815.54
4.3.80.0000.02715.54
4.3.70.0030.01415.54
4.3.60.0030.01415.54
4.3.50.0030.01415.54
4.3.40.0030.02115.54
4.3.30.0000.02115.54
4.3.20.0030.01415.54
4.3.10.0000.01915.54
4.3.00.0030.01315.54

preferences:
49.57 ms | 401 KiB | 5 Q