3v4l.org

run code in 300+ PHP versions simultaneously
<?php $request = 'POST'; $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"}'; $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 $header) { if ($header != 'X-Wix-Signature' && $first == true) { $result = $result . trim($header); $first = false; } else if ($header != 'X-Wix-Signature') { $result = $result . ',' . trim($header); } } // 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']; // { // "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.00718.55
8.3.50.0130.00521.99
8.3.40.0150.00018.86
8.3.30.0100.00720.17
8.3.20.0080.00018.76
8.3.10.0090.00021.12
8.3.00.0070.00719.68
8.2.180.0120.00916.63
8.2.170.0000.01422.96
8.2.160.0070.00720.52
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00720.90
8.2.110.0090.00022.08
8.2.100.0060.00617.78
8.2.90.0000.00719.34
8.2.80.0000.00719.25
8.2.70.0050.00317.75
8.2.60.0040.00418.05
8.2.50.0000.00818.07
8.2.40.0080.00019.91
8.2.30.0090.00019.37
8.2.20.0040.00417.63
8.2.10.0050.00317.68
8.2.00.0040.00417.71
8.1.280.0090.01225.92
8.1.270.0050.00323.99
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0090.00022.51
8.1.230.0040.00820.98
8.1.220.0050.00318.77
8.1.210.0040.00418.91
8.1.200.0060.00317.35
8.1.190.0050.00217.40
8.1.180.0000.00918.10
8.1.170.0000.00818.64
8.1.160.0080.00018.89
8.1.150.0040.00418.68
8.1.140.0000.00717.46
8.1.130.0070.00017.69
8.1.120.0050.00317.38
8.1.110.0040.00417.35
8.1.100.0050.00317.36
8.1.90.0000.00717.30
8.1.80.0000.00717.36
8.1.70.0000.00817.43
8.1.60.0000.00917.54
8.1.50.0040.00417.53
8.1.40.0000.00717.38
8.1.30.0040.00417.68
8.1.20.0030.00517.67
8.1.10.0030.00617.47
8.1.00.0080.00317.46
8.0.300.0000.00720.03
8.0.290.0070.00017.04
8.0.280.0040.00418.49
8.0.270.0000.00717.20
8.0.260.0000.00716.68
8.0.250.0050.00316.80
8.0.240.0060.00316.89
8.0.230.0030.00316.92
8.0.220.0070.00016.76
8.0.210.0030.00316.88
8.0.200.0030.00316.96
8.0.190.0000.00716.86
8.0.180.0040.00416.91
8.0.170.0000.00716.83
8.0.160.0030.00416.81
8.0.150.0030.00516.81
8.0.140.0070.00016.79
8.0.130.0030.00313.29
8.0.120.0040.00416.86
8.0.110.0040.00416.67
8.0.100.0030.00517.00
8.0.90.0000.00816.84
8.0.80.0130.00316.90
8.0.70.0040.00416.96
8.0.60.0040.00416.70
8.0.50.0040.00416.88
8.0.30.0170.00217.13
8.0.20.0080.01117.40
8.0.10.0000.00816.90
8.0.00.0110.00716.81
7.4.330.0050.00016.67
7.4.320.0060.00016.65
7.4.300.0000.00716.52
7.4.290.0050.00316.57
7.4.280.0030.00316.51
7.4.270.0030.00316.59
7.4.260.0050.00013.30
7.4.250.0000.00816.46
7.4.240.0030.00316.52
7.4.230.0030.00316.65
7.4.220.0070.01016.55
7.4.210.0070.00716.58
7.4.200.0070.00016.51
7.4.190.0050.00216.59
7.4.160.0030.01216.35
7.4.150.0030.01417.40
7.4.140.0100.01017.86
7.4.130.0100.01016.49
7.4.120.0080.00916.54
7.4.110.0100.00716.47
7.4.100.0110.00716.56
7.4.90.0160.00316.29
7.4.80.0130.01019.39
7.4.70.0130.00416.43
7.4.60.0070.01016.68
7.4.50.0000.00916.37
7.4.40.0040.01222.77
7.4.30.0100.00716.45
7.4.00.0070.01115.18
7.3.330.0050.00013.16
7.3.320.0050.00013.39
7.3.310.0000.00716.27
7.3.300.0040.00416.45
7.3.290.0060.01216.35
7.3.280.0110.00816.35
7.3.270.0120.00617.40
7.3.260.0140.00818.24
7.3.250.0190.01016.42
7.3.240.0070.01116.55
7.3.230.0110.00516.46
7.3.210.0100.00716.29
7.3.200.0090.00919.39
7.3.190.0120.00916.39
7.3.180.0110.00416.48
7.3.170.0090.00616.38
7.3.160.0040.01116.51
7.3.120.0110.00414.88
7.3.110.0060.01014.72
7.3.100.0060.00914.73
7.3.90.0090.00914.71
7.3.80.0030.01014.66
7.3.70.0030.01314.47
7.3.60.0060.00614.55
7.3.50.0090.00614.93
7.3.40.0100.00714.72
7.3.30.0070.01014.95
7.3.20.0060.01016.78
7.3.10.0000.01416.65
7.3.00.0060.00916.66
7.2.330.0150.00616.92
7.2.320.0150.00316.48
7.2.310.0080.00816.73
7.2.300.0170.00016.77
7.2.290.0100.01616.72
7.2.250.0100.01015.04
7.2.240.0070.01014.96
7.2.230.0030.00914.93
7.2.220.0040.01114.94
7.2.210.0000.00915.25
7.2.200.0040.00815.11
7.2.190.0040.01115.01
7.2.180.0060.00814.87
7.2.170.0040.01115.14
7.1.330.0070.00715.68
7.1.320.0040.01115.36
7.1.310.0040.01215.88
7.1.300.0060.00915.50
7.1.290.0100.00315.82
7.1.280.0070.00315.60
7.1.270.0080.00515.52
7.1.260.0070.01015.67
7.1.70.0040.00717.30
7.1.60.0050.00517.32
7.1.50.0040.01516.93
7.1.00.0000.03722.51
7.0.200.0040.00416.52
7.0.140.0030.07322.04
7.0.100.0100.07720.07
7.0.90.0070.08719.97
7.0.80.0030.08319.93
7.0.70.0030.08320.02
7.0.60.0130.07020.11
7.0.50.0070.04720.30
7.0.40.0100.03720.13
7.0.30.0130.05020.11
7.0.20.0000.04320.05
7.0.10.0000.04320.07
7.0.00.0200.02320.00
5.6.280.0070.06720.89
5.6.250.0030.08720.52
5.6.240.0070.06020.50
5.6.230.0030.09020.56
5.6.220.0000.08720.50
5.6.210.0130.05320.63
5.6.200.0070.04321.06
5.6.190.0130.07021.09
5.6.180.0070.03721.04
5.6.170.0070.04021.05
5.6.160.0030.06021.04
5.6.150.0000.04321.09
5.6.140.0130.08021.05
5.6.130.0030.07721.08
5.6.120.0000.04721.17
5.6.110.0070.03721.00
5.6.100.0030.04321.06
5.6.90.0000.04721.12
5.6.80.0030.04320.53
5.6.70.0000.04320.43
5.6.60.0100.06720.36
5.6.50.0030.04020.36
5.6.40.0070.03720.48
5.6.30.0070.03720.37
5.6.20.0070.03720.40
5.6.10.0070.03720.37
5.6.00.0030.04020.33
5.5.380.0100.06320.52
5.5.370.0070.08320.53
5.5.360.0130.07020.32
5.5.350.0070.08020.36
5.5.340.0000.04720.92
5.5.330.0100.03720.91
5.5.320.0030.04320.76
5.5.310.0030.04720.74
5.5.300.0070.04720.80
5.5.290.0100.03320.81
5.5.280.0100.03720.93
5.5.270.0000.07020.64
5.5.260.0070.05320.80
5.5.250.0070.03720.73
5.5.240.0030.04020.13
5.5.230.0030.04320.16
5.5.220.0070.03720.27
5.5.210.0070.04020.12
5.5.200.0070.03720.18
5.5.190.0130.05020.18
5.5.180.0000.04720.13
5.5.160.0070.04020.13
5.5.150.0030.04020.19
5.5.140.0030.03720.14
5.5.130.0130.04720.09
5.5.120.0130.04320.28
5.5.110.0070.03720.19
5.5.100.0000.03319.99
5.5.90.0100.03320.07
5.5.80.0130.06720.06
5.5.70.0030.05720.06
5.5.60.0070.07720.11
5.5.50.0070.05319.97
5.5.40.0070.07720.11
5.5.30.0030.07320.09
5.5.20.0070.07720.12
5.5.10.0070.07320.06
5.5.00.0100.06320.06
5.4.450.0030.03719.21
5.4.440.0030.04319.46
5.4.430.0030.03719.36
5.4.420.0000.05319.35
5.4.410.0070.03319.15
5.4.400.0000.04019.13
5.4.390.0030.03719.10
5.4.380.0100.03019.04
5.4.370.0030.05019.05
5.4.360.0030.03719.05
5.4.350.0000.04319.06
5.4.340.0000.05719.09
5.4.320.0030.03719.14
5.4.310.0030.03719.16
5.4.300.0070.03319.04
5.4.290.0070.03319.13
5.4.280.0000.03718.88
5.4.270.0000.04019.14
5.4.260.0070.03319.14
5.4.250.0030.05019.13
5.4.240.0070.06719.17
5.4.230.0030.07719.01
5.4.220.0030.07719.04
5.4.210.0100.07319.13
5.4.200.0100.07719.12
5.4.190.0170.06019.12
5.4.180.0130.03318.98
5.4.170.0030.07719.12
5.4.160.0070.05319.12
5.4.150.0000.08319.22
5.4.140.0100.07016.45
5.4.130.0130.05716.45
5.4.120.0070.07716.35
5.4.110.0070.05716.47
5.4.100.0130.06316.43
5.4.90.0030.08016.34
5.4.80.0100.06716.38
5.4.70.0070.07316.41
5.4.60.0100.06016.43
5.4.50.0070.07016.43
5.4.40.0030.07716.54
5.4.30.0100.07016.39
5.4.20.0130.06316.31
5.4.10.0030.07716.39
5.4.00.0070.07715.81
5.3.290.0000.04014.73
5.3.280.0100.03014.58
5.3.270.0100.07314.62
5.3.260.0100.07714.73
5.3.250.0170.06714.53
5.3.240.0070.07314.63
5.3.230.0100.06714.57
5.3.220.0070.08014.49
5.3.210.0030.07014.52
5.3.200.0030.07714.54
5.3.190.0100.07714.64
5.3.180.0070.08014.50
5.3.170.0100.06714.57
5.3.160.0100.07014.70
5.3.150.0100.06714.70
5.3.140.0070.07314.68
5.3.130.0100.07314.57
5.3.120.0100.07714.62
5.3.110.0030.07314.53
5.3.100.0100.07014.07
5.3.90.0070.07013.96
5.3.80.0030.07314.08
5.3.70.0130.06313.96
5.3.60.0030.04314.11
5.3.50.0070.07314.02
5.3.40.0030.07314.02
5.3.30.0070.07013.84
5.3.20.0100.06013.77
5.3.10.0030.04713.66
5.3.00.0170.05713.55
5.2.170.0030.06011.16
5.2.160.0000.06711.26
5.2.150.0000.06711.07
5.2.140.0030.06311.29
5.2.130.0130.05711.24
5.2.120.0070.05711.13
5.2.110.0070.06011.11
5.2.100.0070.06311.20
5.2.90.0030.06311.25
5.2.80.0030.06311.12
5.2.70.0130.05711.13
5.2.60.0030.06711.19
5.2.50.0100.05710.89
5.2.40.0070.06010.93
5.2.30.0070.06011.04
5.2.20.0070.06010.89
5.2.10.0070.06010.98
5.2.00.0030.04710.82
5.1.60.0000.04010.09
5.1.50.0030.05710.12
5.1.40.0000.05310.05
5.1.30.0030.05710.33
5.1.20.0000.03710.39
5.1.10.0000.06010.05
5.1.00.0000.04010.21
5.0.50.0000.05010.05
5.0.40.0030.04310.05
5.0.30.0100.05710.05
5.0.20.0000.04310.05
5.0.10.0000.03010.05
5.0.00.0030.06310.05
4.4.90.0000.03710.05
4.4.80.0000.04010.05
4.4.70.0030.03710.05
4.4.60.0030.03710.05
4.4.50.0030.03310.05
4.4.40.0030.05710.05
4.4.30.0070.03010.05
4.4.20.0100.01010.05
4.4.10.0030.03710.05
4.4.00.0000.05310.05
4.3.110.0070.02010.05
4.3.100.0000.03710.05
4.3.90.0070.03310.05
4.3.80.0030.05010.05
4.3.70.0030.03310.05
4.3.60.0030.03310.05
4.3.50.0000.03710.05
4.3.40.0030.04310.05
4.3.30.0000.03310.05
4.3.20.0030.02310.05
4.3.10.0030.02710.05
4.3.00.0000.03310.05

preferences:
54.25 ms | 401 KiB | 5 Q