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']; 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.40.0090.00618.67
8.3.30.0030.01020.11
8.3.20.0040.00418.69
8.3.10.0040.00421.21
8.3.00.0040.00419.68
8.2.170.0140.00322.96
8.2.160.0040.01522.11
8.2.150.0000.00924.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0140.00019.18
8.2.110.0030.00620.46
8.2.100.0030.00917.78
8.2.90.0030.00617.75
8.2.80.0040.00418.89
8.2.70.0080.00017.38
8.2.60.0000.00817.75
8.2.50.0000.00818.15
8.2.40.0050.00318.16
8.2.30.0000.00719.33
8.2.20.0000.00817.79
8.2.10.0040.00417.77
8.2.00.0000.00817.74
8.1.270.0000.00723.99
8.1.260.0130.00626.35
8.1.250.0100.00328.09
8.1.240.0090.00023.77
8.1.230.0060.00621.04
8.1.220.0040.00418.48
8.1.210.0040.00418.77
8.1.200.0000.00817.48
8.1.190.0030.00717.22
8.1.180.0000.00818.10
8.1.170.0000.00817.62
8.1.160.0030.00518.86
8.1.150.0040.00418.60
8.1.140.0030.00517.37
8.1.130.0000.00717.76
8.1.120.0070.00017.48
8.1.110.0070.00017.52
8.1.100.0000.00717.52
8.1.90.0000.00717.49
8.1.80.0050.00217.35
8.1.70.0030.00317.43
8.1.60.0000.00917.58
8.1.50.0080.00017.45
8.1.40.0040.00417.51
8.1.30.0000.00717.63
8.1.20.0030.00517.63
8.1.10.0050.00317.47
8.1.00.0060.00317.54
8.0.300.0050.00318.77
8.0.290.0080.00016.75
8.0.280.0030.00318.37
8.0.270.0030.00517.27
8.0.260.0030.00316.77
8.0.250.0000.00816.86
8.0.240.0040.00416.84
8.0.230.0080.00016.94
8.0.220.0030.00316.95
8.0.210.0040.00416.83
8.0.200.0030.00316.94
8.0.190.0030.00316.96
8.0.180.0070.00016.91
8.0.170.0040.00416.82
8.0.160.0030.00616.79
8.0.150.0000.00716.80
8.0.140.0050.00316.86
8.0.130.0000.00513.36
8.0.120.0040.00416.90
8.0.110.0040.00416.76
8.0.100.0000.00716.90
8.0.90.0070.00016.94
8.0.80.0060.01316.90
8.0.70.0040.00416.76
8.0.60.0050.00216.72
8.0.50.0070.00016.73
8.0.30.0060.01216.95
8.0.20.0120.00817.40
8.0.10.0040.00316.87
8.0.00.0070.01416.84
7.4.330.0020.00216.70
7.4.320.0060.00316.55
7.4.300.0030.00316.53
7.4.290.0000.00816.45
7.4.280.0000.00816.62
7.4.270.0000.00716.52
7.4.260.0000.00613.25
7.4.250.0030.00516.43
7.4.240.0030.00316.56
7.4.230.0070.00016.51
7.4.220.0110.00716.59
7.4.210.0060.01016.60
7.4.200.0000.00716.40
7.4.190.0030.00316.78
7.4.160.0080.01516.65
7.4.150.0090.01917.40
7.4.140.0070.01117.86
7.4.130.0100.00716.61
7.4.120.0060.01116.69
7.4.110.0120.00916.72
7.4.100.0070.01116.57
7.4.90.0160.00716.58
7.4.80.0150.00319.39
7.4.70.0060.00916.59
7.4.60.0100.01316.55
7.4.50.0050.00316.38
7.4.40.0080.00022.77
7.4.30.0120.00616.62
7.4.00.0040.01114.82
7.3.330.0030.00313.35
7.3.320.0050.00013.29
7.3.310.0000.00716.41
7.3.300.0030.00316.24
7.3.290.0000.02016.34
7.3.280.0090.00816.38
7.3.270.0140.00317.40
7.3.260.0130.00918.24
7.3.250.0050.01216.61
7.3.240.0060.00916.63
7.3.230.0130.00616.39
7.3.210.0060.00916.33
7.3.200.0130.00719.39
7.3.190.0100.00716.35
7.3.180.0130.00716.46
7.3.170.0100.00716.64
7.3.160.0040.01516.44
7.3.120.0070.01014.96
7.3.110.0160.00314.95
7.3.100.0130.00714.81
7.3.90.0030.00914.99
7.3.80.0030.01314.60
7.3.70.0060.00314.81
7.3.60.0070.00715.04
7.3.50.0040.00714.54
7.3.40.0090.00614.90
7.3.30.0060.00914.61
7.3.20.0100.00316.65
7.3.10.0030.00616.76
7.3.00.0000.01016.52
7.2.330.0000.01716.72
7.2.320.0090.00916.88
7.2.310.0140.00316.87
7.2.300.0160.00016.84
7.2.290.0100.00716.70
7.2.250.0160.00015.25
7.2.240.0090.00615.31
7.2.230.0060.00915.14
7.2.220.0030.00715.36
7.2.210.0070.00415.23
7.2.200.0100.00615.16
7.2.190.0080.00414.93
7.2.180.0060.00615.23
7.2.170.0070.00715.06
7.2.160.0080.00815.17
7.2.150.0000.01317.03
7.2.140.0090.00317.07
7.2.130.0030.01017.05
7.2.120.0030.00716.99
7.2.110.0100.01016.71
7.2.100.0060.00616.73
7.2.90.0060.00616.99
7.2.80.0070.01116.83
7.2.70.0060.00617.03
7.2.60.0060.00916.97
7.2.50.0030.01117.00
7.2.40.0060.01016.73
7.2.30.0060.00316.66
7.2.20.0070.01017.09
7.2.10.0000.01817.00
7.2.00.0020.01418.28
7.1.330.0130.00616.02
7.1.320.0030.01015.82
7.1.310.0070.01015.76
7.1.300.0060.00315.89
7.1.290.0120.00015.75
7.1.280.0030.01015.90
7.1.270.0070.00715.87
7.1.260.0030.00715.77
7.1.250.0000.00915.84
7.1.240.0090.00615.93
7.1.230.0080.00415.65
7.1.220.0070.00415.80
7.1.210.0100.00715.88
7.1.200.0100.00315.92
7.1.190.0000.01215.89
7.1.180.0000.01315.84
7.1.170.0040.00715.79
7.1.160.0030.01215.79
7.1.150.0090.00315.53
7.1.140.0070.01015.75
7.1.130.0090.00615.57
7.1.120.0000.01116.00
7.1.110.0030.01015.97
7.1.100.0050.01017.10
7.1.90.0100.00715.85
7.1.80.0070.00715.71
7.1.70.0010.00816.55
7.1.60.0030.01316.38
7.1.50.0060.00816.40
7.1.40.0070.00816.26
7.1.30.0050.01016.28
7.1.20.0050.00816.29
7.1.10.0030.00916.37
7.1.00.0000.01116.41
7.0.330.0110.00615.29
7.0.320.0070.00715.39
7.0.310.0000.01515.44
7.0.300.0130.00015.52
7.0.290.0000.01315.67
7.0.280.0050.00315.39
7.0.270.0030.01015.64
7.0.260.0030.00615.39
7.0.250.0000.01115.42
7.0.240.0000.01615.28
7.0.230.0070.01015.63
7.0.220.0030.01015.48
7.0.210.0030.00615.52
7.0.200.0070.00616.19
7.0.190.0050.00915.98
7.0.180.0070.00515.89
7.0.170.0080.00315.86
7.0.160.0050.00715.73
7.0.150.0080.00315.84
7.0.140.0070.00315.98
7.0.130.0050.00515.83
7.0.120.0030.00516.18
7.0.110.0010.01015.92
7.0.100.0060.00515.92
7.0.90.0040.00816.06
7.0.80.0080.00415.79
7.0.70.0030.00816.01
7.0.60.0040.00915.84
7.0.50.0040.00315.87
7.0.40.0030.00914.36
7.0.30.0050.00514.27
7.0.20.0040.00814.31
7.0.10.0020.00614.37
7.0.00.0020.00914.29
5.6.400.0130.00014.32
5.6.390.0120.00614.38
5.6.380.0070.00714.56
5.6.370.0040.00714.70
5.6.360.0090.00414.34
5.6.350.0040.00714.10
5.6.340.0140.00414.68
5.6.330.0040.01114.05
5.6.320.0140.00414.46
5.6.310.0140.00014.36
5.6.300.0050.02517.68
5.6.290.0020.02817.62
5.6.280.0030.03217.74
5.6.270.0090.03317.79
5.6.260.0060.03917.84
5.6.250.0060.02417.80
5.6.240.0060.02617.74
5.6.230.0070.02417.74
5.6.220.0050.02817.74
5.6.210.0080.02417.62
5.6.200.0120.02317.59
5.6.190.0050.02617.50
5.6.180.0010.02517.75
5.6.170.0030.02617.60
5.6.160.0050.02317.59
5.6.150.0050.02517.80
5.6.140.0180.01617.64
5.6.130.0020.02617.53
5.6.120.0020.02917.51
5.6.110.0070.02317.64
5.6.100.0040.02217.66
5.6.90.0050.02517.79
5.6.80.0080.02417.29
5.6.70.0030.02517.15
5.6.60.0050.03017.37
5.6.50.0050.02217.27
5.6.40.0090.02417.30
5.6.30.0080.02517.37
5.6.20.0030.04317.17
5.6.10.0110.01817.34
5.6.00.0020.03117.25
5.5.380.0030.02516.03
5.5.370.0030.02615.91
5.5.360.0060.02516.26
5.5.350.0030.02615.95
5.5.340.0030.02616.35
5.5.330.0020.02716.11
5.5.320.0030.02516.26
5.5.310.0060.02516.19
5.5.300.0060.02516.39
5.5.290.0050.02716.15
5.5.280.0020.02716.18
5.5.270.0090.02116.32
5.5.260.0050.02416.27
5.5.250.0020.02716.01
5.5.240.0100.02016.01
5.5.230.0050.02315.86
5.5.220.0050.02315.96
5.5.210.0060.02115.93
5.5.200.0030.02315.81
5.5.190.0070.02015.71
5.5.180.0050.02915.84
5.5.170.0060.00314.41
5.5.160.0060.02015.67
5.5.150.0020.02515.69
5.5.140.0020.03015.77
5.5.130.0050.02415.68
5.5.120.0020.02515.65
5.5.110.0030.02215.91
5.5.100.0020.03015.70
5.5.90.0020.02615.69
5.5.80.0020.02415.70
5.5.70.0040.02115.67
5.5.60.0020.02615.60
5.5.50.0070.02215.88
5.5.40.0050.02815.80
5.5.30.0110.01815.87
5.5.20.0060.02315.57
5.5.10.0050.02715.66
5.5.00.0030.02215.90
5.4.450.0030.02515.83
5.4.440.0030.02215.71
5.4.430.0010.02615.67
5.4.420.0060.02215.71
5.4.410.0040.02215.64
5.4.400.0020.02415.53
5.4.390.0030.02315.59
5.4.380.0020.02315.55
5.4.370.0020.02415.66
5.4.360.0000.02715.66
5.4.350.0080.01815.59
5.4.340.0080.02315.66
5.4.330.0100.00012.11
5.4.320.0010.02415.59
5.4.310.0070.02015.55
5.4.300.0050.02315.61
5.4.290.0020.02315.61
5.4.280.0030.02315.64
5.4.270.0020.02515.54
5.4.260.0040.02315.52
5.4.250.0080.02215.63
5.4.240.0050.02115.67
5.4.230.0030.02215.51
5.4.220.0070.02015.50
5.4.210.0040.02715.52
5.4.200.0050.02515.53
5.4.190.0050.02415.54
5.4.180.0020.02315.67
5.4.170.0040.02315.57
5.4.160.0050.02215.50
5.4.150.0000.02415.60
5.4.140.0000.02614.43
5.4.130.0020.02114.39
5.4.120.0060.01714.31
5.4.110.0000.02614.30
5.4.100.0030.02214.26
5.4.90.0020.02214.37
5.4.80.0060.01814.42
5.4.70.0020.02214.42
5.4.60.0010.02314.41
5.4.50.0000.02314.44
5.4.40.0070.02414.38
5.4.30.0020.02014.36
5.4.20.0020.02214.41
5.4.10.0050.02214.41
5.4.00.0000.02314.07
5.3.290.0070.01913.68
5.3.280.0030.01913.68
5.3.270.0020.02413.68
5.3.260.0030.02213.68
5.3.250.0030.02313.68
5.3.240.0050.01913.68
5.3.230.0040.02113.68
5.3.220.0030.02313.68
5.3.210.0020.02213.68
5.3.200.0040.02113.68
5.3.190.0030.02113.68
5.3.180.0020.02313.68
5.3.170.0020.02213.68
5.3.160.0030.01913.68
5.3.150.0050.02613.68
5.3.140.0050.02113.68
5.3.130.0050.01813.68
5.3.120.0020.02113.68
5.3.110.0020.03713.68
5.3.100.0030.02313.68
5.3.90.0020.02713.68
5.3.80.0020.02313.68
5.3.70.0020.02413.68
5.3.60.0030.01913.68
5.3.50.0000.02413.68
5.3.40.0020.02413.68
5.3.30.0050.01913.68
5.3.20.0040.01913.68
5.3.10.0040.03513.68
5.3.00.0030.02113.68
5.2.170.0100.03015.25
5.2.160.0060.03115.25
5.2.150.0100.02315.25
5.2.140.0000.03215.25
5.2.130.0090.02215.25
5.2.120.0000.03315.25
5.2.110.0000.03115.25
5.2.100.0030.02715.25
5.2.90.0030.02615.25
5.2.80.0000.04015.25
5.2.70.0000.03315.25
5.2.60.0000.03015.25
5.2.50.0030.03215.25
5.2.40.0000.03015.25
5.2.30.0000.04215.25
5.2.20.0030.02715.25
5.2.10.0030.02715.25
5.2.00.0040.02815.25
5.1.60.0060.03215.25
5.1.50.0070.04415.25
5.1.40.0000.03015.25
5.1.30.0030.02615.25
5.1.20.0000.02715.25
5.1.10.0000.03015.25
5.1.00.0000.05215.25
5.0.50.0060.04515.25
5.0.40.0030.01915.25
5.0.30.0030.03115.25
5.0.20.0000.02115.25
5.0.10.0000.02615.25
5.0.00.0000.03715.25
4.4.90.0000.01915.25
4.4.80.0030.01915.25
4.4.70.0030.01415.25
4.4.60.0000.01815.25
4.4.50.0030.01515.25
4.4.40.0030.02715.25
4.4.30.0000.01715.25
4.4.20.0000.02015.25
4.4.10.0000.02415.25
4.4.00.0100.02315.25
4.3.110.0000.01715.25
4.3.100.0000.01615.25
4.3.90.0000.03215.25
4.3.80.0000.02515.25
4.3.70.0030.01315.25
4.3.60.0040.01815.25
4.3.50.0030.04415.25
4.3.40.0030.02415.25
4.3.30.0030.02015.25
4.3.20.0000.02315.25
4.3.10.0000.01915.25
4.3.00.0080.01515.25

preferences:
43.41 ms | 400 KiB | 5 Q