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 : " . $base64 . "\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.0120.00318.43
8.3.50.0090.01322.05
8.3.40.0110.00418.70
8.3.30.0140.00020.16
8.3.20.0080.00018.90
8.3.10.0000.00821.27
8.3.00.0000.00819.78
8.2.180.0210.00016.63
8.2.170.0100.00622.96
8.2.160.0030.01020.41
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00721.08
8.2.110.0080.00022.26
8.2.100.0000.01117.72
8.2.90.0040.00419.17
8.2.80.0040.00419.39
8.2.70.0040.00417.62
8.2.60.0040.00418.16
8.2.50.0000.00818.07
8.2.40.0040.00419.76
8.2.30.0000.00719.32
8.2.20.0040.00417.64
8.2.10.0030.00617.62
8.2.00.0080.00017.73
8.1.280.0030.01425.92
8.1.270.0000.00723.99
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0030.00622.42
8.1.230.0080.00320.88
8.1.220.0000.00918.77
8.1.210.0080.00018.89
8.1.200.0030.00617.36
8.1.190.0000.00717.52
8.1.180.0000.00818.10
8.1.170.0030.00518.64
8.1.160.0080.00018.89
8.1.150.0070.00018.65
8.1.140.0000.00717.46
8.1.130.0030.00317.76
8.1.120.0070.00017.49
8.1.110.0000.00717.45
8.1.100.0030.00417.44
8.1.90.0070.00017.38
8.1.80.0000.00717.50
8.1.70.0000.00717.35
8.1.60.0050.00317.64
8.1.50.0000.00817.49
8.1.40.0080.00017.48
8.1.30.0040.00417.66
8.1.20.0060.00317.63
8.1.10.0070.00017.57
8.1.00.0030.00717.39
8.0.300.0070.00020.00
8.0.290.0000.00717.05
8.0.280.0000.00718.29
8.0.270.0000.00717.13
8.0.260.0030.00316.83
8.0.250.0000.00816.98
8.0.240.0040.00416.83
8.0.230.0030.00316.90
8.0.220.0080.00016.90
8.0.210.0030.00316.95
8.0.200.0000.00616.91
8.0.190.0040.00416.87
8.0.180.0040.00416.93
8.0.170.0050.00316.89
8.0.160.0000.00716.82
8.0.150.0000.00716.81
8.0.140.0000.00816.87
8.0.130.0070.00013.24
8.0.120.0000.00816.75
8.0.110.0030.00516.91
8.0.100.0030.00616.88
8.0.90.0040.00416.93
8.0.80.0100.00616.86
8.0.70.0040.00416.89
8.0.60.0080.00016.82
8.0.50.0000.00716.74
8.0.30.0090.00817.15
8.0.20.0150.00517.40
8.0.10.0000.00716.91
8.0.00.0140.00316.75
7.4.330.0000.00516.77
7.4.320.0030.00316.43
7.4.300.0000.00616.45
7.4.290.0000.00716.59
7.4.280.0000.00816.54
7.4.270.0000.00816.50
7.4.260.0060.00013.29
7.4.250.0000.00716.55
7.4.240.0040.00416.63
7.4.230.0030.00316.36
7.4.220.0070.01016.55
7.4.210.0070.01116.57
7.4.200.0070.00016.54
7.4.190.0070.00016.50
7.4.160.0100.00716.43
7.4.150.0110.00717.40
7.4.140.0110.01117.86
7.4.130.0090.01016.58
7.4.120.0080.00916.49
7.4.110.0090.01316.39
7.4.100.0100.00716.43
7.4.90.0090.00916.42
7.4.80.0120.00919.39
7.4.70.0170.00016.57
7.4.60.0030.01416.61
7.4.50.0000.00916.54
7.4.40.0060.00622.77
7.4.30.0080.01116.61
7.4.00.0030.01314.96
7.3.330.0030.00313.41
7.3.320.0030.00313.35
7.3.310.0030.00316.47
7.3.300.0000.00716.30
7.3.290.0030.01016.38
7.3.280.0090.01016.34
7.3.270.0140.00317.40
7.3.260.0120.00618.24
7.3.250.0090.00816.41
7.3.240.0110.00816.47
7.3.230.0110.00716.39
7.3.210.0080.00916.65
7.3.200.0120.00819.39
7.3.190.0070.01016.50
7.3.180.0120.00616.59
7.3.170.0060.00916.36
7.3.160.0090.00616.61
7.3.120.0060.00914.91
7.2.330.0090.00816.54
7.2.320.0100.00716.83
7.2.310.0140.00316.89
7.2.300.0070.01016.84
7.2.290.0060.01616.93
7.2.110.0190.00716.40
7.2.60.0040.01116.89
7.2.50.0090.00016.79
7.1.200.0070.00315.77
7.1.70.0100.00016.98
7.1.60.0040.00717.33
7.1.50.0000.01017.10
7.1.40.0060.00616.68
7.1.30.0050.00516.71
7.1.20.0000.01116.77
7.1.10.0000.01116.77
7.1.00.0040.00416.52
7.0.200.0030.00316.84
7.0.190.0070.00016.73
7.0.180.0040.00416.35
7.0.170.0030.00816.38
7.0.160.0060.00316.33
7.0.150.0030.00716.37
7.0.140.0040.00416.52
7.0.130.0000.00716.61
7.0.120.0030.00616.56
7.0.110.0000.00816.34
7.0.100.0000.00716.43
7.0.90.0000.00816.49
7.0.80.0040.00416.36
7.0.70.0000.00816.49
7.0.60.0030.00716.10
7.0.50.0030.00516.64
7.0.40.0000.00815.54
7.0.30.0030.01115.54
7.0.20.0040.00415.54
7.0.10.0000.00715.54
7.0.00.0060.00315.54
5.6.300.0060.03920.84
5.6.290.0070.03620.96
5.6.280.0000.04920.85
5.6.270.0030.04420.94
5.6.260.0000.05721.06
5.6.250.0100.03720.93
5.6.240.0030.04221.03
5.6.230.0060.04121.02
5.6.220.0070.04220.89
5.6.210.0100.03720.92
5.6.200.0030.04221.02
5.6.190.0030.04520.70
5.6.180.0030.06120.96
5.6.170.0030.04320.79
5.6.160.0070.04020.70
5.6.150.0070.03920.70
5.6.140.0000.05320.82
5.6.130.0070.03620.95
5.6.120.0060.04220.80
5.6.110.0030.04120.82
5.6.100.0000.04820.98
5.6.90.0000.04620.77
5.6.80.0030.04220.34
5.6.70.0070.04620.17
5.6.60.0070.03620.36
5.6.50.0000.04420.16
5.6.40.0030.04120.09
5.6.30.0030.04220.35
5.6.20.0030.04520.16
5.6.10.0060.03820.08
5.6.00.0070.03620.28
5.5.380.0030.03917.41
5.5.370.0060.03517.44
5.5.360.0000.04317.40
5.5.350.0000.04217.61
5.5.340.0070.03618.06
5.5.330.0040.03917.87
5.5.320.0070.03617.84
5.5.310.0000.04617.83
5.5.300.0030.04818.18
5.5.290.0000.04418.09
5.5.280.0260.04017.83
5.5.270.0070.03717.99
5.5.260.0030.04018.08
5.5.250.0000.04717.82
5.5.240.0070.04317.57
5.5.230.0070.03817.08
5.5.220.0030.03917.40
5.5.210.0070.03617.39
5.5.200.0030.03717.36
5.5.190.0000.04617.45
5.5.180.0000.04017.36
5.5.160.0000.04117.07
5.5.150.0070.03717.18
5.5.140.0070.03617.53
5.5.130.0040.03617.44
5.5.120.0070.03317.44
5.5.110.0030.04117.35
5.5.100.0030.04217.34
5.5.90.0070.03617.38
5.5.80.0030.03617.31
5.5.70.0000.04517.08
5.5.60.0030.03917.30
5.5.50.0000.04017.42
5.5.40.0060.03917.33
5.5.30.0030.04017.25
5.5.20.0060.04217.33
5.5.10.0070.03417.10
5.5.00.0070.04217.32
5.4.450.0030.04319.55
5.4.440.0100.03619.43
5.4.430.0060.03419.29
5.4.420.0100.03319.23
5.4.410.0000.04319.30
5.4.400.0260.02919.11
5.4.390.0000.04519.13
5.4.380.0000.03918.91
5.4.370.0100.04818.97
5.4.360.0000.04219.10
5.4.350.0030.04119.20
5.4.340.0000.04019.14
5.4.320.0030.04419.20
5.4.310.0000.03919.16
5.4.300.0030.04019.10
5.4.290.0030.04219.06
5.4.280.0000.05118.97
5.4.270.0070.04019.06
5.4.260.0030.03918.99
5.4.250.0030.03719.20
5.4.240.0000.04719.04
5.4.230.0000.04118.96
5.4.220.0030.03919.06
5.4.210.0000.07218.98
5.4.200.0040.03919.07
5.4.190.0030.04019.19
5.4.180.0030.04219.09
5.4.170.0100.05219.02
5.4.160.0070.03418.86
5.4.150.0000.04619.17
5.4.140.0070.03616.78
5.4.130.0060.04916.73
5.4.120.0030.07616.57
5.4.110.0000.04816.46
5.4.100.0000.04016.71
5.4.90.0070.03316.70
5.4.80.0000.03916.45
5.4.70.0030.03416.76
5.4.60.0030.06016.59
5.4.50.0030.03716.60
5.4.40.0000.04016.44
5.4.30.0070.03316.44
5.4.20.0030.03616.45
5.4.10.0070.03716.61
5.4.00.0000.04016.00
5.3.290.0030.03615.54
5.3.280.0030.03515.54
5.3.270.0030.04015.54
5.3.260.0100.02915.54
5.3.250.0030.03715.54
5.3.240.0070.04415.54
5.3.230.0070.03115.54
5.3.220.0000.04315.54
5.3.210.0000.04215.54
5.3.200.0060.03515.54
5.3.190.0040.03615.54
5.3.180.0030.03815.54
5.3.170.0070.03615.54
5.3.160.0000.07815.54
5.3.150.0040.03615.54
5.3.140.0030.04115.54
5.3.130.0000.04715.54
5.3.120.0030.03915.54
5.3.110.0060.03515.54
5.3.100.0030.03715.54
5.3.90.0000.03715.54
5.3.80.0000.03815.54
5.3.70.0000.03815.54
5.3.60.0000.03815.54
5.3.50.0030.03515.54
5.3.40.0000.03815.54
5.3.30.0000.03915.54
5.3.20.0030.03315.54
5.3.10.0070.02915.54
5.3.00.0000.03715.54
5.2.170.0000.03815.54
5.2.160.0030.02715.54
5.2.150.0000.03615.54
5.2.140.0070.02715.54
5.2.130.0030.02815.54
5.2.120.0000.03715.54
5.2.110.0030.03715.54
5.2.100.0070.02315.54
5.2.90.0000.04415.54
5.2.80.0060.03215.54
5.2.70.0030.04315.54
5.2.60.0000.04515.54
5.2.50.0070.02615.54
5.2.40.0030.02915.54
5.2.30.0070.05715.54
5.2.20.0030.03915.54
5.2.10.0000.03815.54
5.2.00.0030.03615.54
5.1.60.0000.02615.54
5.1.50.0070.02015.54
5.1.40.0030.03715.54
5.1.30.0070.02115.54
5.1.20.0070.02315.54
5.1.10.0060.02215.54
5.1.00.0130.02215.54
5.0.50.0000.02315.54
5.0.40.0030.01915.54
5.0.30.0000.03515.54
5.0.20.0030.01815.54
5.0.10.0000.02215.54
5.0.00.0070.02615.54
4.4.90.0000.01915.54
4.4.80.0000.01615.54
4.4.70.0030.01315.54
4.4.60.0030.01415.54
4.4.50.0030.02515.54
4.4.40.0000.04715.54
4.4.30.0000.01915.54
4.4.20.0000.01715.54
4.4.10.0030.01315.54
4.4.00.0000.02715.54
4.3.110.0000.01715.54
4.3.100.0000.02215.54
4.3.90.0060.01315.54
4.3.80.0000.02615.54
4.3.70.0030.02115.54
4.3.60.0030.01415.54
4.3.50.0030.01515.54
4.3.40.0000.02615.54
4.3.30.0000.01715.54
4.3.20.0030.01515.54
4.3.10.0030.01715.54
4.3.00.0000.01615.54

preferences:
44.51 ms | 401 KiB | 5 Q