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"}'; echo "the body is " . trim($body); $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.75
8.3.50.0080.01422.06
8.3.40.0150.00018.88
8.3.30.0180.00319.21
8.3.20.0050.00320.34
8.3.10.0030.00523.50
8.3.00.0090.00019.38
8.2.180.0090.00918.16
8.2.170.0090.00922.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0060.01126.16
8.2.120.0000.00822.14
8.2.110.0030.00622.25
8.2.100.0030.00917.91
8.2.90.0000.00819.34
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0090.00317.93
8.2.50.0060.00318.07
8.2.40.0040.00418.16
8.2.30.0060.00318.14
8.2.20.0030.00617.68
8.2.10.0040.00418.15
8.2.00.0030.00517.63
8.1.280.0110.00425.92
8.1.270.0040.00422.04
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00024.02
8.1.230.0070.00418.94
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0040.00717.23
8.1.190.0050.00317.40
8.1.180.0000.00818.10
8.1.170.0000.00818.70
8.1.160.0000.00822.01
8.1.150.0040.00418.53
8.1.140.0000.00717.36
8.1.130.0080.00017.74
8.1.120.0040.00417.34
8.1.110.0030.00617.54
8.1.100.0050.00217.42
8.1.90.0070.00017.50
8.1.80.0000.00917.35
8.1.70.0040.00417.44
8.1.60.0000.00817.66
8.1.50.0030.00517.50
8.1.40.0040.00417.46
8.1.30.0050.00317.50
8.1.20.0000.00817.54
8.1.10.0080.00017.49
8.1.00.0000.00817.41
8.0.300.0000.00718.77
8.0.290.0000.00717.18
8.0.280.0000.00818.45
8.0.270.0030.00317.27
8.0.260.0060.00016.79
8.0.250.0060.00016.98
8.0.240.0030.00517.02
8.0.230.0030.00316.92
8.0.220.0070.00016.89
8.0.210.0080.00016.95
8.0.200.0000.00616.94
8.0.190.0060.00317.03
8.0.180.0000.00816.89
8.0.170.0050.00316.99
8.0.160.0030.00616.74
8.0.150.0000.00716.94
8.0.140.0040.00316.76
8.0.130.0050.00013.38
8.0.120.0070.00016.85
8.0.110.0070.00016.93
8.0.100.0000.00816.71
8.0.90.0070.00016.69
8.0.80.0080.00816.92
8.0.70.0080.00016.97
8.0.60.0000.00717.00
8.0.50.0040.00416.89
8.0.30.0110.01217.10
8.0.20.0080.01117.40
8.0.10.0040.00416.89
8.0.00.0080.01016.78
7.4.330.0060.00015.00
7.4.320.0050.00216.58
7.4.300.0030.00316.61
7.4.290.0000.00716.53
7.4.280.0000.00816.54
7.4.270.0050.00316.55
7.4.260.0000.00716.54
7.4.250.0040.00416.49
7.4.240.0000.00816.64
7.4.230.0040.00416.65
7.4.220.0090.00916.71
7.4.210.0050.01216.59
7.4.200.0040.00216.70
7.4.190.0040.00416.70
7.4.160.0030.01316.66
7.4.150.0140.00317.40
7.4.140.0060.01217.86
7.4.130.0080.00816.47
7.4.120.0080.00816.62
7.4.110.0130.00416.50
7.4.100.0090.00916.61
7.4.90.0140.00316.63
7.4.80.0090.00919.39
7.4.70.0060.01016.61
7.4.60.0030.01316.46
7.4.50.0030.00516.61
7.4.40.0030.01422.77
7.4.30.0180.00016.66
7.4.00.0090.00614.80
7.3.330.0000.00513.23
7.3.320.0030.00313.11
7.3.310.0000.00716.36
7.3.300.0070.00016.38
7.3.290.0000.01616.34
7.3.280.0070.01016.35
7.3.270.0150.00417.40
7.3.260.0060.01316.66
7.3.250.0100.00716.37
7.3.240.0180.00316.44
7.3.230.0060.01016.66
7.3.210.0090.00916.47
7.3.200.0160.00619.39
7.3.190.0090.01216.38
7.3.180.0100.00616.34
7.3.170.0060.01016.63
7.3.160.0150.00616.56
7.3.120.0090.00615.14
7.2.330.0130.00616.60
7.2.320.0160.00316.41
7.2.310.0100.00716.89
7.2.300.0130.00316.87
7.2.290.0030.01416.83
7.2.00.0000.01219.15
7.1.100.0050.00318.23
7.1.70.0030.01017.19
7.1.60.0110.01119.33
7.1.50.0130.01016.77
7.1.00.0000.08022.46
7.0.200.0000.00916.67
7.0.140.0070.06721.95
7.0.60.0130.08320.07
7.0.50.0070.08017.89
7.0.40.0100.07319.96
7.0.30.0470.08020.09
7.0.20.0200.05720.22
7.0.10.0070.05720.30
7.0.00.0100.08320.08
5.6.280.0000.07720.90
5.6.210.0070.06720.52
5.6.200.0170.08018.12
5.6.190.0070.08320.61
5.6.180.0230.06720.61
5.6.170.0230.08320.51
5.6.160.0000.09320.70
5.6.150.0030.04018.19
5.6.140.0100.08018.24
5.6.130.0030.08718.17
5.6.120.0030.05321.14
5.6.110.0130.08321.02
5.6.100.0030.09320.98
5.6.90.0100.08321.04
5.6.80.0130.07020.43
5.6.70.4600.04020.51
5.5.350.0030.07720.34
5.5.340.0100.07317.99
5.5.330.0070.04720.27
5.5.320.0330.07320.27
5.5.310.0200.04020.50
5.5.300.0100.07317.95
5.5.290.0070.06317.94
5.5.280.0100.04320.90
5.5.270.0030.08720.85
5.5.260.0070.04020.84
5.5.250.0130.03320.59
5.5.240.0070.05020.34
5.4.450.0370.04319.49
5.4.440.0070.06319.49
5.4.430.0170.05319.61
5.4.420.0970.05319.52
5.4.410.0230.04319.41
5.4.400.0130.05319.30
5.4.390.0100.06019.20
5.4.380.0270.06018.47
5.4.370.0230.05318.70
5.4.360.0200.05018.74
5.4.350.0200.05318.70
5.4.340.0230.06318.74
5.4.320.0050.03812.51
5.4.310.0070.03612.51
5.4.300.0150.04312.50
5.4.290.0060.04412.50
5.4.280.0050.04412.40
5.4.270.0060.03612.40
5.4.260.0020.04112.41
5.4.250.0060.03712.40
5.4.240.0080.03312.40
5.4.230.0080.03512.39
5.4.220.0060.03612.39
5.4.210.0070.03412.39
5.4.200.0090.04812.39
5.4.190.0320.08712.37
5.4.180.0190.04012.37
5.4.170.0190.04312.38
5.4.160.0220.06812.37
5.4.150.0150.04812.38
5.4.140.0120.04612.06
5.4.130.0210.04112.05
5.4.120.0160.04212.00
5.4.110.0200.04012.00
5.4.100.0170.04412.00
5.4.90.0140.04412.00
5.4.80.0150.04312.00
5.4.70.0120.04611.99
5.4.60.0180.04112.00
5.4.50.0190.03911.99
5.4.40.0160.04211.98
5.4.30.0300.08811.98
5.4.20.0170.04011.97
5.4.10.0120.04611.98
5.4.00.0150.04211.46
5.3.290.0130.04012.80
5.3.280.0070.03612.71
5.3.270.0140.04812.72
5.3.260.0180.04312.72
5.3.250.0150.04612.72
5.3.240.0160.04412.72
5.3.230.0170.04712.71
5.3.220.0150.04512.68
5.3.210.0160.04512.68
5.3.200.0190.04412.68
5.3.190.0270.06512.68
5.3.180.0170.04312.68
5.3.170.0190.04112.66
5.3.160.0200.06912.67
5.3.150.0140.04512.67
5.3.140.0110.04912.66
5.3.130.0150.04612.66
5.3.120.0140.04712.66
5.3.110.0200.04412.66
5.3.100.0160.04612.12
5.3.90.0180.04412.09
5.3.80.0140.05012.07
5.3.70.0170.04312.08
5.3.60.0130.04712.07
5.3.50.0150.04612.02
5.3.40.0170.04412.00
5.3.30.0230.09511.97
5.3.20.0170.04311.75
5.3.10.0220.03311.71
5.3.00.0170.04611.70
5.2.170.0140.0399.20
5.2.160.0400.0689.20
5.2.150.0160.0329.21
5.2.140.0140.0349.20
5.2.130.0130.0359.16
5.2.120.0130.0369.16
5.2.110.0100.0399.16
5.2.100.0220.0549.16
5.2.90.0160.0319.17
5.2.80.0110.0379.16
5.2.70.0150.0349.15
5.2.60.0120.0359.11
5.2.50.0350.0739.07
5.2.40.0100.0369.06
5.2.30.0130.0339.03
5.2.20.0130.0349.02
5.2.10.0090.0378.93
5.2.00.0120.0348.77
5.1.60.0130.0278.07
5.1.50.0110.0348.06
5.1.40.0120.0308.05
5.1.30.0140.0308.39
5.1.20.0160.0288.43
5.1.10.0240.0808.14
5.1.00.0170.0248.14
5.0.50.0110.0226.64
5.0.40.0110.0216.49
5.0.30.0090.0356.30
5.0.20.0100.0216.30
5.0.10.0100.0216.27
5.0.00.0090.0356.27
4.4.90.0090.0164.77
4.4.80.0060.0184.76
4.4.70.0230.0624.75
4.4.60.0070.0184.76
4.4.50.0060.0184.77
4.4.40.0060.0294.71
4.4.30.0070.0184.76
4.4.20.0080.0174.84
4.4.10.0070.0184.85
4.4.00.0050.0314.76
4.3.110.0050.0194.67
4.3.100.0040.0204.66
4.3.90.0080.0154.63
4.3.80.0060.0284.58
4.3.70.0070.0174.63
4.3.60.0090.0154.63
4.3.50.0050.0194.63
4.3.40.0060.0284.53
4.3.30.0050.0183.34
4.3.20.0040.0213.32
4.3.10.0070.0163.28
4.3.00.0370.00715.59

preferences:
41.61 ms | 401 KiB | 5 Q