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, $headers, $body) { $result = ''; $result .= $request; $result .= "\n"; $result .= $url; $result .= "\n"; ksort($headers); foreach ($headers as $header) { if ($header != 'x-wix-signature') { $result = $result . $header . ','; } } $result = $result . "\n" . $body; return $result; } $concat = concat($request, $headers, $body); $encrypted = hash_hmac('sha256', $concat, $key); //$base64 = base64_encode($encrypted); echo "The computed signature is : " . $encrypted . "<br/>"; 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.0120.00616.63
8.3.50.0090.00922.18
8.3.40.0190.00019.14
8.3.30.0030.01319.18
8.3.20.0100.01020.13
8.3.10.0110.00723.65
8.3.00.0100.00719.32
8.2.180.0110.01118.29
8.2.170.0150.00022.96
8.2.160.0130.00720.43
8.2.150.0040.01524.18
8.2.140.0110.00424.66
8.2.130.0120.00626.16
8.2.120.0060.00320.62
8.2.110.0060.00322.10
8.2.100.0120.00019.76
8.2.90.0040.00419.30
8.2.80.0050.00318.05
8.2.70.0080.00017.63
8.2.60.0040.00418.05
8.2.50.0030.00518.07
8.2.40.0040.00418.16
8.2.30.0000.00818.24
8.2.20.0030.00717.80
8.2.10.0050.00318.04
8.2.00.0000.00817.87
8.1.280.0140.00725.92
8.1.270.0120.00623.54
8.1.260.0090.00926.35
8.1.250.0090.00928.09
8.1.240.0090.00023.91
8.1.230.0060.00619.25
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0050.00517.13
8.1.190.0050.00317.41
8.1.180.0030.00618.10
8.1.170.0050.00318.52
8.1.160.0050.00222.02
8.1.150.0060.00320.42
8.1.140.0060.00317.46
8.1.130.0000.00717.77
8.1.120.0000.00717.53
8.1.110.0000.00817.49
8.1.100.0000.01017.45
8.1.90.0070.00017.43
8.1.80.0040.00417.34
8.1.70.0040.00417.35
8.1.60.0040.00417.58
8.1.50.0030.00617.51
8.1.40.0000.00917.43
8.1.30.0030.00517.53
8.1.20.0000.00717.59
8.1.10.0030.00517.57
8.1.00.0000.00817.52
8.0.300.0040.00418.77
8.0.290.0020.00517.05
8.0.280.0000.00818.33
8.0.270.0030.00317.31
8.0.260.0000.00716.89
8.0.250.0040.00416.94
8.0.240.0000.00817.03
8.0.230.0000.00717.04
8.0.220.0040.00416.93
8.0.210.0000.00717.01
8.0.200.0070.00017.02
8.0.190.0030.00517.05
8.0.180.0030.00316.88
8.0.170.0000.00716.98
8.0.160.0000.00716.90
8.0.150.0050.00316.95
8.0.140.0050.00316.98
8.0.130.0060.00013.41
8.0.120.0000.00816.90
8.0.110.0040.00416.95
8.0.100.0070.00016.85
8.0.90.0030.00316.94
8.0.80.0090.00616.94
8.0.70.0080.00016.92
8.0.60.0000.00717.01
8.0.50.0040.00416.94
8.0.30.0130.00717.27
8.0.20.0090.00917.40
8.0.10.0000.00717.15
8.0.00.0060.01216.70
7.4.330.0000.00515.02
7.4.320.0030.00316.65
7.4.300.0000.00616.52
7.4.290.0030.00716.58
7.4.280.0030.00616.51
7.4.270.0030.00316.57
7.4.260.0000.00816.59
7.4.250.0040.00416.46
7.4.240.0000.00716.47
7.4.230.0000.00716.59
7.4.220.0040.01316.56
7.4.210.0070.00716.57
7.4.200.0030.00316.64
7.4.190.0000.00816.75
7.4.160.0090.00616.62
7.4.150.0060.01217.40
7.4.140.0080.01117.86
7.4.130.0050.01316.49
7.4.120.0060.01116.60
7.4.110.0030.01316.63
7.4.100.0030.01416.50
7.4.90.0120.00616.73
7.4.80.0100.01019.39
7.4.70.0060.01016.42
7.4.60.0030.01316.74
7.4.50.0000.00816.48
7.4.40.0070.01022.77
7.4.30.0090.00616.59
7.4.00.0030.01314.82
7.3.330.0000.00513.43
7.3.320.0020.00213.30
7.3.310.0000.00716.28
7.3.300.0030.00316.35
7.3.290.0070.01016.34
7.3.280.0070.00916.46
7.3.270.0100.01117.40
7.3.260.0040.01216.34
7.3.250.0070.01616.54
7.3.240.0100.00616.42
7.3.230.0060.01116.57
7.3.210.0040.01416.42
7.3.200.0110.01019.39
7.3.190.0090.01316.62
7.3.180.0090.00616.45
7.3.170.0130.00716.39
7.3.160.0100.00716.50
7.3.120.0030.00515.13
7.3.10.0060.00716.72
7.3.00.0090.00716.84
7.2.330.0070.01316.51
7.2.320.0000.01816.75
7.2.310.0100.01316.90
7.2.300.0100.01016.43
7.2.290.0090.01116.76
7.2.130.0060.00816.90
7.2.120.0070.00716.93
7.2.110.0080.00716.97
7.2.100.0070.00916.85
7.2.90.0070.00616.93
7.2.80.0060.00716.98
7.2.70.0050.00816.84
7.2.60.0070.00717.04
7.2.50.0020.01017.07
7.2.40.0030.01117.07
7.2.30.0070.00717.01
7.2.20.0060.00617.04
7.2.10.0030.00916.93
7.2.00.0060.00716.93
7.1.250.0020.00715.75
7.1.200.0070.00715.78
7.1.70.0000.00817.26
7.1.60.0070.01719.33
7.1.50.0060.01616.79
7.1.00.0070.07322.57
7.0.200.0020.00716.53
7.0.140.0000.07722.04
7.0.100.0370.07019.90
7.0.90.0400.08019.92
7.0.80.0400.08719.96
7.0.70.0530.07320.01
7.0.60.0570.06319.87
7.0.50.0230.06320.32
7.0.40.0170.06720.10
7.0.30.0170.07320.11
7.0.20.0130.06720.05
7.0.10.0170.07020.03
7.0.00.0230.06320.14
5.6.280.0070.07020.79
5.6.250.0000.05720.66
5.6.240.0000.06320.69
5.6.230.0100.08020.63
5.6.220.0100.08020.66
5.6.210.0070.08020.59
5.6.200.0030.05021.09
5.6.190.0100.08321.08
5.6.180.0070.08021.02
5.6.170.0030.08720.94
5.6.160.0070.06721.18
5.6.150.0000.08320.99
5.6.140.0100.06321.08
5.6.130.0000.07021.09
5.6.120.0070.07721.01
5.6.110.0070.05320.96
5.6.100.0100.04721.10
5.6.90.0100.08321.02
5.6.80.0070.07020.44
5.6.70.0070.06320.37
5.6.60.0030.08020.42
5.6.50.0000.05320.45
5.6.40.0130.06720.47
5.6.30.0070.07020.30
5.6.20.0030.08320.36
5.6.10.0170.06720.46
5.6.00.0100.07320.36
5.5.380.0070.09020.35
5.5.370.0030.07320.38
5.5.360.0100.05020.49
5.5.350.0070.04720.38
5.5.340.0200.06720.84
5.5.330.0030.08320.81
5.5.320.0270.07020.84
5.5.310.0030.07320.88
5.5.300.0170.07020.80
5.5.290.0170.07720.88
5.5.280.0100.09020.88
5.5.270.0070.07320.79
5.5.260.0100.04020.93
5.5.250.0100.08020.63
5.5.240.0130.07320.25
5.5.230.0070.04720.02
5.5.220.0070.07720.20
5.5.210.0230.06320.16
5.5.200.0130.07320.22
5.5.190.0030.05020.18
5.5.180.0000.08320.07
5.5.160.0170.06720.13
5.5.150.0130.07320.22
5.5.140.0070.04720.27
5.5.130.0100.06720.13
5.5.120.0100.07720.17
5.5.110.0030.05720.17
5.5.100.0170.07020.02
5.5.90.0130.06720.15
5.5.80.0070.05019.98
5.5.70.0200.05320.09
5.5.60.0130.03720.15
5.5.50.0130.07019.94
5.5.40.0100.07320.14
5.5.30.0030.08320.14
5.5.20.0030.04020.09
5.5.10.0070.06319.93
5.5.00.0070.04320.10
5.4.450.0100.07719.29
5.4.440.0130.07319.20
5.4.430.0000.04319.20
5.4.420.0070.07719.35
5.4.410.0130.04019.43
5.4.400.0030.07719.18
5.4.390.0100.06319.23
5.4.380.0070.06319.10
5.4.370.0100.05019.04
5.4.360.0130.04319.13
5.4.350.0170.06319.02
5.4.340.0170.07019.04
5.4.320.0100.07018.95
5.4.310.0130.06019.04
5.4.300.0070.06318.91
5.4.290.0100.03719.16
5.4.280.0100.06719.09
5.4.270.0000.04719.02
5.4.260.0130.06019.18
5.4.250.0030.04719.06
5.4.240.0070.04019.03
5.4.230.0030.07719.12
5.4.220.0070.05019.22
5.4.210.0070.04019.04
5.4.200.0030.07719.13
5.4.190.0130.07719.20
5.4.180.0100.05019.03
5.4.170.0100.04319.14
5.4.160.0070.07019.14
5.4.150.0070.04318.95
5.4.140.0100.07016.42
5.4.130.0030.06016.44
5.4.120.0200.06016.33
5.4.110.0030.06716.40
5.4.100.0070.07316.39
5.4.90.0070.07316.39
5.4.80.0070.07016.43
5.4.70.0100.08316.42
5.4.60.0170.05316.45
5.4.50.0070.08016.30
5.4.40.0130.07016.51
5.4.30.0100.05016.46
5.4.20.0070.04016.30
5.4.10.0070.07316.33
5.4.00.0070.07015.79
5.3.290.0030.05014.67
5.3.280.0070.05314.58
5.3.270.0030.04014.61
5.3.260.0070.06714.54
5.3.250.0070.07314.67
5.3.240.0070.07714.71
5.3.230.0100.04014.57
5.3.220.0030.07714.50
5.3.210.0030.05314.54
5.3.200.0230.06314.67
5.3.190.0100.06714.54
5.3.180.0100.07714.59
5.3.170.0030.07014.55
5.3.160.0070.07714.51
5.3.150.0100.07314.67
5.3.140.0070.06314.63
5.3.130.0030.08014.64
5.3.120.0070.07714.66
5.3.110.0030.04714.63
5.3.100.0130.07014.15
5.3.90.0130.06314.08
5.3.80.0100.07714.13
5.3.70.0100.04314.15
5.3.60.0030.08014.06
5.3.50.0100.07013.84
5.3.40.0030.06014.01
5.3.30.0070.06013.93
5.3.20.0100.05013.63
5.3.10.0200.06713.79
5.3.00.0070.07313.65
5.2.170.0030.07011.06
5.2.160.0130.06011.22
5.2.150.0070.06311.21
5.2.140.0100.06311.23
5.2.130.0070.05711.03
5.2.120.0070.05011.15
5.2.110.0030.03311.12
5.2.100.0070.03011.01
5.2.90.0030.06311.16
5.2.80.0070.04711.11
5.2.70.0070.04711.01
5.2.60.0070.06011.16
5.2.50.0070.06311.13
5.2.40.0030.06711.02
5.2.30.0100.05010.97
5.2.20.0030.03311.02
5.2.10.0030.06010.96
5.2.00.0000.05310.67
5.1.60.0100.03310.00
5.1.50.0100.04710.08
5.1.40.0030.04010.00
5.1.30.0000.06010.40
5.1.20.0100.04310.27
5.1.10.0070.03710.06
5.1.00.0070.03010.14
5.0.50.0030.04010.00
5.0.40.0030.02010.00
5.0.30.0070.03010.00
5.0.20.0070.03310.00
5.0.10.0030.04310.00
5.0.00.0030.03710.00
4.4.90.0030.03310.00
4.4.80.0100.03010.00
4.4.70.0000.04010.00
4.4.60.0030.02710.00
4.4.50.0030.03310.00
4.4.40.0000.02710.00
4.4.30.0070.03310.00
4.4.20.0030.03010.00
4.4.10.0000.02010.00
4.4.00.0070.02010.00
4.3.110.0000.02010.00
4.3.100.0030.03010.00
4.3.90.0030.03010.00
4.3.80.0030.04010.00
4.3.70.0100.02710.00
4.3.60.0030.01310.00
4.3.50.0030.01710.00
4.3.40.0070.03310.00
4.3.30.0000.03310.00
4.3.20.0000.02710.00
4.3.10.0000.03010.00
4.3.00.0000.03310.00

preferences:
43.12 ms | 401 KiB | 5 Q