3v4l.org

run code in 300+ PHP versions simultaneously
<?php $request = 'POST'; $url = '/1.0/wix/site-events'; $headers = array( 'x-wix-event-type' => '/provision/provision', 'x-wix-timestamp' => '2013-09-30T10:46:38.993Z', 'x-wix-signature' => 'BX1AQrO4IxNuwMIOhYiuiH0nrk-F8pamGgk6Oe7S82I', 'x-wix-application-id' => '1306dc69-eb2f-493d-fc98-f4e693829367', 'x-wix-instance-id'=> '1328a7fe-e451-8780-d201-0c5d9a1fc02b', 'x-wix-event-id'=> '2cdae256-750f-4cc8-bbde-b35018bf8ceb' ); $body = '{"instance-id":"1328a7fe-e451-8780-d201-0c5d9a1fc02b"}'; $key = "8bbb74b1-8864-47b3-804f-04925bf3ffba"; function concat($request, $url, $headers, $body) { $result = ''; $result .= trim($request); $result .= "\n"; $result .= trim($url); $result .= "\n"; ksort($headers); $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); } } $result = $result . "\n" . trim($body); return $result; } $concat = concat($request, $url, $headers, $body); $encrypted = hash_hmac('sha256', $concat, $key); //$base64 = base64_encode($encrypted); echo "The computed signature is : " . $encrypted . "\n"; echo "The signature sent by Wix : " . $headers['x-wix-signature'];

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.0040.01116.74
8.3.50.0050.01217.57
8.3.40.0060.00918.71
8.3.30.0110.00418.83
8.3.20.0080.00018.85
8.3.10.0090.00020.29
8.3.00.0030.00619.26
8.2.180.0100.01016.63
8.2.170.0100.01022.96
8.2.160.0140.00020.96
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00819.48
8.2.110.0070.00321.16
8.2.100.0090.00317.86
8.2.90.0000.00819.35
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0000.00917.93
8.2.50.0030.00518.10
8.2.40.0040.00418.28
8.2.30.0040.00418.21
8.2.20.0000.00817.64
8.2.10.0000.00717.77
8.2.00.0060.00317.87
8.1.280.0160.00025.92
8.1.270.0050.00324.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.19
8.1.230.0060.00617.77
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0030.00517.23
8.1.180.0050.00318.10
8.1.170.0000.00818.53
8.1.160.0040.00418.86
8.1.150.0000.00818.65
8.1.140.0000.00717.47
8.1.130.0000.00717.76
8.1.120.0040.00417.51
8.1.110.0080.00017.45
8.1.100.0040.00417.55
8.1.90.0070.00017.45
8.1.80.0000.00717.33
8.1.70.0030.00317.40
8.1.60.0030.00617.43
8.1.50.0040.00417.48
8.1.40.0040.00417.44
8.1.30.0000.00817.56
8.1.20.0000.00917.63
8.1.10.0040.00417.55
8.1.00.0040.00417.45
8.0.300.0060.00318.77
8.0.290.0070.00016.63
8.0.280.0000.00718.39
8.0.270.0050.00317.29
8.0.260.0030.00316.76
8.0.250.0040.00416.88
8.0.240.0090.00016.91
8.0.230.0030.00316.91
8.0.220.0000.00816.77
8.0.210.0070.00016.93
8.0.200.0070.00016.95
8.0.190.0070.00016.98
8.0.180.0040.00416.97
8.0.170.0090.00016.82
8.0.160.0030.00616.86
8.0.150.0040.00416.74
8.0.140.0040.00416.79
8.0.130.0000.00613.37
8.0.120.0000.00916.93
8.0.110.0050.00216.87
8.0.100.0030.00316.80
8.0.90.0000.00716.70
8.0.80.0030.01016.90
8.0.70.0040.00416.97
8.0.60.0000.00716.82
8.0.50.0000.00716.86
8.0.30.0100.01117.02
8.0.20.0130.00517.35
8.0.10.0000.00817.06
8.0.00.0060.01516.79
7.4.330.0050.00013.02
7.4.320.0060.00316.38
7.4.300.0040.00416.66
7.4.290.0040.00416.51
7.4.280.0000.00816.57
7.4.270.0050.00316.61
7.4.260.0060.00013.31
7.4.250.0100.00016.43
7.4.240.0030.00316.54
7.4.230.0000.00716.52
7.4.220.0060.01316.53
7.4.210.0100.00716.61
7.4.200.0000.00716.50
7.4.190.0050.00216.71
7.4.160.0060.00916.54
7.4.150.0070.01116.46
7.4.140.0120.00916.60
7.4.130.0120.00916.61
7.4.120.0080.00916.58
7.4.110.0050.01616.40
7.4.100.0150.01816.58
7.4.90.0090.00916.50
7.4.80.0150.00516.55
7.4.70.0090.00916.54
7.4.60.0090.00916.39
7.4.50.0000.00716.58
7.4.40.0030.01316.61
7.4.30.0100.01016.52
7.4.00.0060.01214.80
7.3.330.0040.00413.44
7.3.320.0030.00313.29
7.3.310.0030.00616.43
7.3.300.0030.00316.32
7.3.290.0070.00716.38
7.3.280.0090.00816.29
7.3.270.0070.01016.53
7.3.260.0100.00716.48
7.3.250.0150.01016.49
7.3.240.0080.00816.56
7.3.230.0170.00016.50
7.3.210.0100.00616.41
7.3.200.0090.00919.39
7.3.190.0030.01716.41
7.3.180.0140.00316.58
7.3.170.0030.01416.37
7.3.160.0100.00616.65
7.3.120.0000.01814.84
7.3.10.0110.00616.63
7.3.00.0080.00416.79
7.2.330.0100.01016.89
7.2.320.0110.00916.57
7.2.310.0170.00716.79
7.2.300.0100.00716.78
7.2.290.0130.00316.88
7.2.130.0140.00317.00
7.2.120.0090.00616.73
7.2.110.0050.01016.81
7.2.100.0110.00616.68
7.2.90.0110.00516.90
7.2.80.0090.00617.00
7.2.70.0090.00716.85
7.2.60.0070.00816.73
7.2.50.0090.00917.11
7.2.40.0090.00816.90
7.2.30.0100.00616.56
7.2.20.0080.00816.80
7.2.10.0090.00516.68
7.2.00.0060.00817.66
7.1.250.0070.00715.90
7.1.240.0240.00315.83
7.1.230.0080.01215.40
7.1.220.0160.00415.38
7.1.210.0080.00815.62
7.1.200.0170.00715.41
7.1.190.0160.00815.67
7.1.180.0090.01315.72
7.1.170.0200.00315.59
7.1.160.0130.00615.47
7.1.150.0140.00715.82
7.1.140.0080.00815.91
7.1.130.0090.00915.81
7.1.120.0120.00415.82
7.1.110.0110.00315.68
7.1.100.0100.00715.84
7.1.90.0070.01015.68
7.1.80.0180.00315.69
7.1.70.0070.01116.57
7.1.60.0140.00516.54
7.1.50.0080.01116.25
7.1.40.0120.00615.78
7.1.30.0130.00415.58
7.1.20.0040.01215.50
7.1.10.0080.00815.47
7.1.00.0090.03819.08
7.0.330.0100.00615.23
7.0.320.0130.00315.09
7.0.310.0110.00415.08
7.0.300.0170.00015.05
7.0.290.0120.01215.18
7.0.280.0170.00615.09
7.0.270.0120.00815.39
7.0.260.0070.01115.19
7.0.250.0070.01014.96
7.0.240.0120.00615.43
7.0.230.0070.01115.32
7.0.220.0140.00315.18
7.0.210.0090.00915.12
7.0.200.0090.00915.90
7.0.190.0070.00715.42
7.0.180.0090.00615.35
7.0.170.0130.00715.36
7.0.160.0150.00014.96
7.0.150.0060.01315.17
7.0.140.0080.04118.66
7.0.130.0130.00415.25
7.0.120.0080.03718.65
7.0.110.0170.00315.18
7.0.100.0140.00014.95
7.0.90.0100.00715.07
7.0.80.0130.00615.13
7.0.70.0110.00715.02
7.0.60.0070.03917.53
7.0.50.0080.03716.68
7.0.40.0030.04315.71
7.0.30.0050.04515.60
7.0.20.0070.03015.62
7.0.10.0100.04515.67
7.0.00.0110.04315.54
5.6.380.0040.00914.38
5.6.370.0070.01014.31
5.6.360.0130.00614.41
5.6.350.0120.00814.06
5.6.340.0130.00514.31
5.6.330.0110.01114.07
5.6.320.0090.00614.56
5.6.310.0080.00514.44
5.6.300.0040.01714.29
5.6.290.0110.01114.16
5.6.280.0050.04417.72
5.6.270.0140.00414.23
5.6.260.0110.00414.54
5.6.250.0140.00914.44
5.6.240.0100.01014.36
5.6.230.0170.00014.21
5.6.220.0060.01014.42
5.6.210.0030.04117.39
5.6.200.0080.03516.33
5.6.190.0110.03116.12
5.6.180.0090.03816.14
5.6.170.0050.02715.89
5.6.160.0080.04116.11
5.6.150.0090.04116.13
5.6.140.0080.03416.20
5.6.130.0100.04416.14
5.6.120.0110.03616.06
5.6.110.0130.04416.30
5.6.100.0110.04016.15
5.6.90.0120.03116.06
5.6.80.0130.03915.86
5.6.70.0090.04515.95
5.6.60.0160.03315.81
5.6.50.0070.02715.85
5.6.40.0090.04415.95
5.6.30.0050.04515.84
5.6.20.0100.04216.11
5.6.10.0050.03116.02
5.6.00.0090.03515.91
5.5.380.0090.00511.16
5.5.370.0060.00611.24
5.5.360.0000.00711.21
5.5.350.0180.03815.73
5.5.340.0070.03114.69
5.5.330.0150.03414.45
5.5.320.0070.03214.48
5.5.310.0030.04614.66
5.5.300.0070.04314.56
5.5.290.0050.03214.57
5.5.280.0080.04114.47
5.5.270.0050.04114.49
5.5.260.0040.02914.63
5.5.250.0070.03914.33
5.5.240.0020.04714.06
5.5.230.0020.02514.28
5.5.220.0080.04214.27
5.5.210.0130.03214.42
5.5.200.0110.04014.30
5.5.190.0040.04714.28
5.5.180.0020.04014.39
5.5.170.0040.01211.31
5.5.160.0120.03314.17
5.5.150.0030.03814.36
5.5.140.0110.02714.31
5.5.130.0120.03814.17
5.5.120.0080.04214.22
5.5.110.0120.03314.21
5.5.100.0070.04114.18
5.5.90.0070.04114.10
5.5.80.0100.03214.15
5.5.70.0100.03814.20
5.5.60.0130.01814.24
5.5.50.0070.04214.29
5.5.40.0080.04314.00
5.5.30.0050.03014.07
5.5.20.0030.04814.11
5.5.10.0030.03913.93
5.5.00.0130.03414.17
5.4.450.0020.04015.29
5.4.440.0060.04515.10
5.4.430.0060.03115.05
5.4.420.0030.02715.21
5.4.410.0050.03515.24
5.4.400.0040.04514.99
5.4.390.0050.03315.05
5.4.380.0060.03515.06
5.4.370.0020.03514.92
5.4.360.0050.02615.04
5.4.350.0090.02714.82
5.4.340.0060.02315.00
5.4.330.0130.00310.38
5.4.320.0040.03914.97
5.4.310.0040.04214.85
5.4.300.0030.04514.96
5.4.290.0120.03614.91
5.4.280.0050.03714.75
5.4.270.0080.03814.91
5.4.260.0050.04614.96
5.4.250.0060.04415.14
5.4.240.0120.03015.14
5.4.230.0070.04315.05
5.4.220.0080.04415.06
5.4.210.0120.03015.05
5.4.200.0160.03415.25
5.4.190.0160.03515.15
5.4.180.0090.04415.14
5.4.170.0200.03515.01
5.4.160.0050.03214.95
5.4.150.0060.03215.05
5.4.140.0050.03813.65
5.4.130.0140.03513.70
5.4.120.0080.03413.72
5.4.110.0130.03013.49
5.4.100.0050.03913.56
5.4.90.0050.03913.52
5.4.80.0100.02513.55
5.4.70.0050.03513.55
5.4.60.0050.02813.76
5.4.50.0100.03813.68
5.4.40.0010.04213.58
5.4.30.0040.03313.58
5.4.20.0000.04513.76
5.4.10.0070.02213.73
5.4.00.0030.04013.37
5.3.290.0050.04212.79
5.3.280.0120.03812.48
5.3.270.0060.04112.69
5.3.260.0050.03712.58
5.3.250.0070.04012.68
5.3.240.0060.02012.63
5.3.230.0050.04312.66
5.3.220.0080.04012.53
5.3.210.0050.03512.50
5.3.200.0030.03912.50
5.3.190.0080.03912.54
5.3.180.0050.04012.71
5.3.170.0030.04512.59
5.3.160.0080.03112.63
5.3.150.0040.04312.44
5.3.140.0030.03012.55
5.3.130.0050.04012.50
5.3.120.0020.04312.64
5.3.110.0030.04012.58
5.3.100.0060.03112.36
5.3.90.0070.04012.33
5.3.80.0090.03612.23
5.3.70.0050.04312.20
5.3.60.0080.03012.49
5.3.50.0050.04012.21
5.3.40.0030.02412.32
5.3.30.0060.03512.11
5.3.20.0040.03911.94
5.3.10.0080.03011.92
5.3.00.0070.02511.93
5.2.170.0070.03210.45
5.2.160.0050.03310.40
5.2.150.0020.03410.28
5.2.140.0050.03310.33
5.2.130.0030.02710.29
5.2.120.0030.02110.37
5.2.110.0000.03610.31
5.2.100.0050.03510.35
5.2.90.0030.02710.33
5.2.80.0030.02210.22
5.2.70.0000.02710.26
5.2.60.0010.02110.26
5.2.50.0030.01810.23
5.2.40.0100.02210.28
5.2.30.0030.03210.21
5.2.20.0030.02510.14
5.2.10.0030.02210.14
5.2.00.0050.03110.09
5.1.60.0020.0269.74
5.1.50.0040.0289.66
5.1.40.0080.0239.73
5.1.30.0050.0309.88
5.1.20.0050.0339.84
5.1.10.0030.0329.73
5.1.00.0060.0169.70
5.0.50.0060.0228.91
5.0.40.0020.0209.02
5.0.30.0050.0328.85
5.0.20.0040.0208.85
5.0.10.0030.0188.85
5.0.00.0000.0278.85
4.4.90.0020.0108.85
4.4.80.0020.0188.85
4.4.70.0000.0208.85
4.4.60.0000.0228.85
4.4.50.0010.0208.85
4.4.40.0020.0208.85
4.4.30.0030.0138.85
4.4.20.0000.0208.85
4.4.10.0020.0208.85
4.4.00.0050.0268.85
4.3.110.0050.0108.85
4.3.100.0020.0178.85
4.3.90.0030.0138.85
4.3.80.0020.0308.85
4.3.70.0020.0208.85
4.3.60.0020.0128.85
4.3.50.0000.0238.85
4.3.40.0080.0238.85
4.3.30.0030.0198.85
4.3.20.0000.0128.85
4.3.10.0000.0208.85
4.3.00.0000.0158.85

preferences:
54.56 ms | 401 KiB | 5 Q