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 = 'http://signature.wix.codeoasis.com'; $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.60.0090.00618.43
8.3.50.0110.00721.14
8.3.40.0060.01518.84
8.3.30.0070.00720.39
8.3.20.0000.00818.73
8.3.10.0040.00421.17
8.3.00.0040.00419.69
8.2.180.0060.00918.42
8.2.170.0110.00422.96
8.2.160.0110.00420.35
8.2.150.0030.00624.18
8.2.140.0050.00224.66
8.2.130.0050.00326.16
8.2.120.0130.00018.77
8.2.110.0030.00720.30
8.2.100.0110.00017.84
8.2.90.0000.00819.29
8.2.80.0090.00019.32
8.2.70.0000.00817.50
8.2.60.0000.00817.87
8.2.50.0040.00418.07
8.2.40.0050.00318.16
8.2.30.0040.00419.36
8.2.20.0040.00417.63
8.2.10.0070.00017.82
8.2.00.0040.00417.81
8.1.270.0040.00423.99
8.1.260.0130.00626.35
8.1.250.0070.00028.09
8.1.240.0090.00022.48
8.1.230.0060.00620.89
8.1.220.0000.00818.77
8.1.210.0080.00018.97
8.1.200.0030.00617.13
8.1.190.0040.00417.51
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0000.00718.96
8.1.150.0070.00018.68
8.1.140.0000.00817.38
8.1.130.0000.00717.82
8.1.120.0000.00717.46
8.1.110.0000.00717.43
8.1.100.0000.00717.50
8.1.90.0040.00417.46
8.1.80.0020.00517.43
8.1.70.0070.00017.37
8.1.60.0000.00817.62
8.1.50.0050.00317.39
8.1.40.0030.00517.48
8.1.30.0040.00417.55
8.1.20.0040.00417.70
8.1.10.0080.00017.53
8.1.00.0030.00717.54
8.0.300.0050.00320.02
8.0.290.0070.00017.18
8.0.280.0000.00818.36
8.0.270.0000.00817.17
8.0.260.0000.00616.82
8.0.250.0000.00816.95
8.0.240.0000.00816.96
8.0.230.0000.00716.98
8.0.220.0000.00716.84
8.0.210.0070.00016.85
8.0.200.0030.00316.92
8.0.190.0070.00016.92
8.0.180.0000.00716.94
8.0.170.0070.00016.85
8.0.160.0030.00616.91
8.0.150.0040.00416.95
8.0.140.0050.00216.76
8.0.130.0070.00013.21
8.0.120.0030.00516.86
8.0.110.0000.00816.71
8.0.100.0040.00416.90
8.0.90.0040.00416.97
8.0.80.0080.00816.88
8.0.70.0040.00416.77
8.0.60.0060.00316.73
8.0.50.0030.00516.79
8.0.30.0080.01017.22
8.0.20.0100.00817.40
8.0.10.0050.00217.06
8.0.00.0130.00916.82
7.4.330.0000.00615.01
7.4.320.0000.00916.63
7.4.300.0040.00416.51
7.4.290.0080.00016.44
7.4.280.0000.00716.60
7.4.270.0030.00316.51
7.4.260.0030.00313.23
7.4.250.0050.00316.43
7.4.240.0000.00716.51
7.4.230.0000.00716.50
7.4.220.0030.01416.59
7.4.210.0070.01016.61
7.4.200.0030.00316.64
7.4.190.0040.00416.49
7.4.160.0120.00916.32
7.4.150.0070.01117.40
7.4.140.0060.01417.86
7.4.130.0070.01016.53
7.4.120.0140.00516.41
7.4.110.0100.01016.51
7.4.100.0110.01116.49
7.4.90.0060.01116.69
7.4.80.0130.00619.39
7.4.70.0110.00516.48
7.4.60.0140.00316.58
7.4.50.0040.00416.30
7.4.40.0000.01622.77
7.4.30.0100.01316.61
7.4.00.0000.01814.85
7.3.330.0030.00313.27
7.3.320.0000.00513.30
7.3.310.0030.00316.35
7.3.300.0030.00316.30
7.3.290.0150.00416.36
7.3.280.0060.00916.33
7.3.270.0160.00317.40
7.3.260.0130.01018.24
7.3.250.0150.00416.57
7.3.240.0030.01316.67
7.3.230.0060.01116.39
7.3.210.0060.01016.37
7.3.200.0160.00319.39
7.3.190.0120.00416.60
7.3.180.0100.01116.32
7.3.170.0110.00416.27
7.3.160.0070.01016.42
7.3.120.0040.01114.72
7.3.10.0040.00916.86
7.3.00.0150.00316.70
7.2.330.0100.00616.85
7.2.320.0110.00716.80
7.2.310.0150.00716.86
7.2.300.0160.00716.73
7.2.290.0090.00916.54
7.2.130.0030.01016.80
7.2.120.0040.01116.84
7.2.110.0000.01317.02
7.2.100.0040.01116.90
7.2.90.0130.00016.98
7.2.80.0100.00716.81
7.2.70.0070.01016.93
7.2.60.0050.00917.11
7.2.50.0030.01317.02
7.2.40.0040.00816.96
7.2.30.0070.01016.74
7.2.20.0030.01216.99
7.2.10.0130.00616.74
7.2.00.0050.00918.26
7.1.250.0030.00815.86
7.1.240.0080.00815.64
7.1.230.0030.00715.33
7.1.220.0040.01115.64
7.1.210.0090.00915.63
7.1.200.0090.00615.89
7.1.190.0040.01115.70
7.1.180.0040.00715.79
7.1.170.0090.00415.82
7.1.160.0080.00815.77
7.1.150.0120.00315.48
7.1.140.0040.01115.47
7.1.130.0000.01415.70
7.1.120.0110.00415.60
7.1.110.0100.00715.59
7.1.100.0060.00916.96
7.1.90.0160.00015.77
7.1.80.0000.01215.62
7.1.70.0000.00916.67
7.1.60.0020.01116.72
7.1.50.0020.01316.71
7.1.40.0070.00516.62
7.1.30.0090.00416.77
7.1.20.0080.00516.80
7.1.10.0050.00616.75
7.1.00.0050.00616.66
7.0.330.0060.00615.38
7.0.320.0040.01115.14
7.0.310.0070.00315.39
7.0.300.0110.00015.33
7.0.290.0070.01115.14
7.0.280.0060.00615.62
7.0.270.0030.01015.38
7.0.260.0060.00915.29
7.0.250.0090.00615.56
7.0.240.0040.00415.48
7.0.230.0000.01015.26
7.0.220.0030.00715.65
7.0.210.0040.00415.54
7.0.200.0020.00716.54
7.0.190.0050.00816.63
7.0.180.0020.00816.45
7.0.170.0040.00416.50
7.0.160.0030.00916.56
7.0.150.0040.00716.43
7.0.140.0030.00716.54
7.0.130.0070.00316.47
7.0.120.0020.00916.55
7.0.110.0030.01016.36
7.0.100.0030.00816.60
7.0.90.0110.00116.60
7.0.80.0050.00916.58
7.0.70.0090.00416.48
7.0.60.0050.00716.44
7.0.50.0050.00716.63
7.0.40.0030.01015.58
7.0.30.0070.00615.45
7.0.20.0100.00715.46
7.0.10.0070.00515.60
7.0.00.0080.00515.62
5.6.380.0000.01314.32
5.6.370.0080.01214.71
5.6.360.0200.00914.20
5.6.350.0120.01214.35
5.6.340.0030.01014.16
5.6.330.0050.01314.43
5.6.320.0120.00814.36
5.6.310.0110.00614.38
5.6.300.0060.02717.75
5.6.290.0060.02517.43
5.6.280.0100.02417.52
5.6.270.0060.02517.68
5.6.260.0070.02617.85
5.6.250.0090.02617.64
5.6.240.0080.02517.57
5.6.230.0100.02317.52
5.6.220.0040.03117.62
5.6.210.0110.02217.57
5.6.200.0100.02617.82
5.6.190.0150.02817.57
5.6.180.0240.02517.45
5.6.170.0150.02817.65
5.6.160.0310.03817.64
5.6.150.0190.02617.38
5.6.140.0270.02117.71
5.6.130.0110.02717.45
5.6.120.0150.02317.61
5.6.110.0160.02817.81
5.6.100.0190.03117.62
5.6.90.0120.02517.48
5.6.80.0130.03117.24
5.6.70.0110.02617.44
5.6.60.0140.02717.29
5.6.50.0070.03117.28
5.6.40.0180.02117.22
5.6.30.0290.02217.32
5.6.20.0200.02817.18
5.6.10.0230.02217.31
5.6.00.0090.02817.38
5.5.380.0210.03114.51
5.5.370.0200.02414.48
5.5.360.0050.02414.53
5.5.350.0140.02414.45
5.5.340.0100.02714.69
5.5.330.0130.02914.69
5.5.320.0120.02514.62
5.5.310.0090.03414.59
5.5.300.0150.02514.75
5.5.290.0290.02514.56
5.5.280.0110.02314.55
5.5.270.0200.02314.61
5.5.260.0160.02414.64
5.5.250.0250.02314.39
5.5.240.0260.02214.48
5.5.230.0170.02214.42
5.5.220.0120.02114.47
5.5.210.0130.02314.46
5.5.200.0120.02014.35
5.5.190.0150.03214.36
5.5.180.0130.02314.51
5.5.170.0330.00711.07
5.5.160.0080.02114.32
5.5.150.0040.02314.50
5.5.140.0130.03114.45
5.5.130.0050.02414.37
5.5.120.0040.02114.38
5.5.110.0060.02314.45
5.5.100.0050.02714.54
5.5.90.0080.02314.33
5.5.80.0010.02214.54
5.5.70.0050.02614.48
5.5.60.0030.02814.50
5.5.50.0070.01714.32
5.5.40.0020.02114.41
5.5.30.0040.02414.21
5.5.20.0060.01914.44
5.5.10.0020.02714.34
5.5.00.0070.02214.46
5.4.450.0290.02315.26
5.4.440.0210.02615.07
5.4.430.0180.02515.36
5.4.420.0070.02815.30
5.4.410.0220.02615.36
5.4.400.0170.02115.13
5.4.390.0100.02314.80
5.4.380.0080.02814.92
5.4.370.0100.02815.12
5.4.360.0130.02315.04
5.4.350.0090.02315.07
5.4.340.0110.02315.14
5.4.330.0150.01511.11
5.4.320.0120.02114.86
5.4.310.0070.02515.18
5.4.300.0070.01815.04
5.4.290.0180.02314.88
5.4.280.0030.03115.06
5.4.270.0060.02214.86
5.4.260.0050.02414.98
5.4.250.0050.01815.15
5.4.240.0060.01915.10
5.4.230.0090.01815.13
5.4.220.0070.02514.98
5.4.210.0050.02114.93
5.4.200.0080.02415.07
5.4.190.0060.02315.01
5.4.180.0050.02115.19
5.4.170.0050.02515.01
5.4.160.0070.02215.11
5.4.150.0020.02514.98
5.4.140.0020.02814.29
5.4.130.0030.02514.44
5.4.120.0050.02114.42
5.4.110.0060.02314.55
5.4.100.0060.02014.33
5.4.90.0020.02214.39
5.4.80.0210.02114.25
5.4.70.0050.02114.51
5.4.60.0100.02314.20
5.4.50.0040.02014.46
5.4.40.0020.02614.21
5.4.30.0110.01914.27
5.4.20.0030.04114.26
5.4.10.0120.02214.46
5.4.00.0100.01414.46
5.3.290.0030.02314.19
5.3.280.0050.02414.04
5.3.270.0000.02514.15
5.3.260.0100.02114.17
5.3.250.0010.02314.22
5.3.240.0010.02614.13
5.3.230.0030.02014.07
5.3.220.0030.02214.09
5.3.210.0070.01814.05
5.3.200.0030.02014.05
5.3.190.0030.02314.10
5.3.180.0150.02714.17
5.3.170.0040.02414.15
5.3.160.0050.02114.17
5.3.150.0030.02414.16
5.3.140.0050.02214.07
5.3.130.0130.01914.13
5.3.120.0090.03014.13
5.3.110.0050.02014.15
5.3.100.0050.01813.98
5.3.90.0020.02114.18
5.3.80.0050.04113.98
5.3.70.0030.02214.16
5.3.60.0080.02414.21
5.3.50.0030.02414.11
5.3.40.0040.02114.18
5.3.30.0060.02914.13
5.3.20.0020.02214.00
5.3.10.0050.01714.03
5.3.00.0090.01814.01
5.2.170.0050.02013.66
5.2.160.0040.01513.67
5.2.150.0050.01813.66
5.2.140.0060.01913.66
5.2.130.0020.02013.66
5.2.120.0070.01613.66
5.2.110.0050.01313.66
5.2.100.0020.02613.66
5.2.90.0000.02313.66
5.2.80.0080.02713.66
5.2.70.0020.01813.66
5.2.60.0080.01913.66
5.2.50.0020.01913.66
5.2.40.0060.01813.66
5.2.30.0050.02013.66
5.2.20.0080.02113.66
5.2.10.0050.01613.66
5.2.00.0020.01913.66
5.1.60.0030.01513.66
5.1.50.0060.01113.66
5.1.40.0070.01413.66
5.1.30.0060.02913.66
5.1.20.0030.01713.66
5.1.10.0090.01213.66
5.1.00.0080.01513.66
5.0.50.0020.02013.66
5.0.40.0050.01413.66
5.0.30.0050.02613.66
5.0.20.0030.02213.66
5.0.10.0040.01313.66
5.0.00.0030.02013.66
4.4.90.0020.01213.66
4.4.80.0060.00713.66
4.4.70.0040.01013.66
4.4.60.0000.01313.66
4.4.50.0020.01013.66
4.4.40.0020.01413.66
4.4.30.0000.01413.66
4.4.20.0050.00813.66
4.4.10.0060.01613.66
4.4.00.0020.02013.66
4.3.110.0020.01213.66
4.3.100.0030.01713.66
4.3.90.0010.01213.66
4.3.80.0050.01813.66
4.3.70.0050.00713.66
4.3.60.0050.00713.66
4.3.50.0030.01413.66
4.3.40.0030.02113.66
4.3.30.0020.01213.66
4.3.20.0060.00813.66
4.3.10.0030.01613.66
4.3.00.0080.00713.66

preferences:
46.58 ms | 400 KiB | 5 Q