3v4l.org

run code in 300+ PHP versions simultaneously
<?php $request = 'POST'; $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"; $headers = ksort($headers); foreach ($headers as $header => $value) { if ($header != 'x-wix-signature') { $result = $result . $header . ': ' . $value; } } $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 : " . $base64 . "\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.0110.00417.00
8.3.50.0070.00822.11
8.3.40.0130.00319.14
8.3.30.0030.01019.17
8.3.20.0070.00020.30
8.3.10.0040.00423.56
8.3.00.0080.00019.51
8.2.180.0130.01016.63
8.2.170.0140.00722.96
8.2.160.0000.01320.39
8.2.150.0080.00024.18
8.2.140.0090.00624.66
8.2.130.0000.00826.16
8.2.120.0080.00022.02
8.2.110.0070.00419.34
8.2.100.0080.00417.84
8.2.90.0060.00319.13
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0080.00417.68
8.2.50.0000.00918.10
8.2.40.0080.00020.47
8.2.30.0000.00718.13
8.2.20.0000.00717.68
8.2.10.0000.00718.16
8.2.00.0000.00817.80
8.1.280.0110.00425.92
8.1.270.0090.00023.99
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0060.00323.62
8.1.230.0000.01120.93
8.1.220.0000.00717.78
8.1.210.0000.00818.77
8.1.200.0040.00417.22
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0050.00318.64
8.1.160.0040.00418.88
8.1.150.0040.00418.58
8.1.140.0050.00217.44
8.1.130.0000.00717.84
8.1.120.0040.00417.40
8.1.110.0070.00017.48
8.1.100.0040.00417.32
8.1.90.0050.00217.42
8.1.80.0030.00317.51
8.1.70.0050.00317.44
8.1.60.0080.00017.59
8.1.50.0050.00317.48
8.1.40.0000.00717.41
8.1.30.0030.00517.65
8.1.20.0080.00017.63
8.1.10.0000.00717.58
8.1.00.0000.00817.37
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0050.00318.39
8.0.270.0040.00417.18
8.0.260.0000.00716.95
8.0.250.0040.00416.93
8.0.240.0050.00217.00
8.0.230.0040.00417.04
8.0.220.0030.00517.01
8.0.210.0030.00317.01
8.0.200.0030.00317.05
8.0.190.0050.00316.94
8.0.180.0050.00216.95
8.0.170.0030.00617.00
8.0.160.0040.00417.00
8.0.150.0000.00716.98
8.0.140.0030.00616.79
8.0.130.0030.00313.48
8.0.120.0040.00417.00
8.0.110.0000.00816.97
8.0.100.0040.00416.81
8.0.90.0020.00516.96
8.0.80.0000.01416.94
8.0.70.0000.00716.82
8.0.60.0030.00616.77
8.0.50.0060.00316.83
8.0.30.0110.00817.25
8.0.20.0100.00817.40
8.0.10.0000.00717.07
8.0.00.0130.00816.78
7.4.330.0000.00515.15
7.4.320.0000.00616.62
7.4.300.0000.00716.63
7.4.290.0030.00316.49
7.4.280.0000.00716.64
7.4.270.0020.00516.52
7.4.260.0060.00316.62
7.4.250.0000.00716.44
7.4.240.0020.00516.48
7.4.230.0070.00016.27
7.4.220.0070.01016.63
7.4.210.0080.00616.56
7.4.200.0030.00316.61
7.4.190.0000.00716.62
7.4.160.0060.00916.52
7.4.150.0130.00617.40
7.4.140.0100.01017.86
7.4.130.0140.00616.62
7.4.120.0150.00416.66
7.4.110.0070.01016.60
7.4.100.0090.01016.71
7.4.90.0090.00816.48
7.4.80.0140.00719.39
7.4.70.0110.00716.42
7.4.60.0130.00416.39
7.4.50.0040.00416.45
7.4.40.0040.01222.77
7.4.30.0070.00716.63
7.4.00.0000.01715.00
7.3.330.0030.00313.39
7.3.320.0020.00213.50
7.3.310.0000.00716.46
7.3.300.0030.00516.44
7.3.290.0090.01216.45
7.3.280.0090.01116.43
7.3.270.0030.01417.40
7.3.260.0100.00716.43
7.3.250.0110.00616.44
7.3.240.0100.00716.45
7.3.230.0090.00916.56
7.3.210.0070.01116.43
7.3.200.0080.00819.39
7.3.190.0090.00916.70
7.3.180.0120.00316.42
7.3.170.0110.00416.65
7.3.160.0030.01316.52
7.3.120.0070.01014.89
7.2.330.0090.00916.68
7.2.320.0110.00616.77
7.2.310.0150.00916.46
7.2.300.0040.01816.76
7.2.290.0060.00916.84
7.1.200.0070.00715.74
7.1.70.0040.00417.16
7.1.60.0140.01119.33
7.1.50.0040.00816.98
7.1.00.0030.07722.37
7.0.200.0000.00916.74
7.0.140.0070.06722.08
7.0.60.0030.07719.93
7.0.50.0070.08717.73
7.0.40.0130.07320.13
7.0.30.0270.06720.09
7.0.20.0300.07320.10
7.0.10.0170.03720.30
7.0.00.0030.07720.12
5.6.280.0000.07721.00
5.6.210.0100.07720.62
5.6.200.0070.08318.19
5.6.190.0030.06020.57
5.6.180.0130.08020.46
5.6.170.0270.04020.52
5.6.160.0100.06720.57
5.6.150.0030.08318.14
5.6.140.0200.07018.21
5.6.130.0000.04318.18
5.6.120.0070.05021.01
5.6.110.0230.06320.97
5.6.100.0030.07021.09
5.6.90.0200.07321.13
5.6.80.0170.04320.52
5.5.350.0200.06720.43
5.5.340.0070.03718.04
5.5.330.0100.08320.34
5.5.320.0300.06320.24
5.5.310.0330.06720.35
5.5.300.0030.05718.03
5.5.290.0070.05018.07
5.5.280.0070.08720.88
5.5.270.0030.05320.96
5.5.260.0070.08720.87
5.5.250.0070.06020.71
5.5.240.0000.08020.16
5.4.450.0300.04719.18
5.4.440.0730.08319.44
5.4.430.0770.05719.66
5.4.420.0870.05719.55
5.4.410.0030.06019.30
5.4.400.0730.06019.26
5.4.390.0430.05018.96
5.4.380.0170.06018.79
5.4.370.0230.05718.70
5.4.360.0200.06718.51
5.4.350.0270.05018.86
5.4.340.0300.05018.75
5.4.320.0100.04012.51
5.4.310.0060.03812.50
5.4.300.0100.05112.50
5.4.290.0060.04012.51
5.4.280.0080.03312.40
5.4.270.0050.03712.40
5.4.260.0070.03612.40
5.4.250.0060.03712.40
5.4.240.0060.03612.40
5.4.230.0060.03712.39
5.4.220.0040.03612.40
5.4.210.0020.04212.39
5.4.200.0040.03912.39
5.4.190.0170.04212.37
5.4.180.0170.04212.37
5.4.170.0380.09012.38
5.4.160.0190.04212.37
5.4.150.0180.04612.37
5.4.140.0150.04512.05
5.4.130.0200.04412.05
5.4.120.0180.03912.00
5.4.110.0150.04412.00
5.4.100.0180.04712.00
5.4.90.0130.04712.00
5.4.80.0260.09612.00
5.4.70.0160.04012.00
5.4.60.0170.04411.99
5.4.50.0160.04311.99
5.4.40.0150.04411.98
5.4.30.0240.06511.97
5.4.20.0130.04811.98
5.4.10.0150.04211.98
5.4.00.0160.04011.46
5.3.290.0080.04812.80
5.3.280.0040.03812.71
5.3.270.0200.04712.72
5.3.260.0130.05212.72
5.3.250.0170.04912.72
5.3.240.0300.09512.72
5.3.230.0190.04512.71
5.3.220.0150.05012.68
5.3.210.0470.08312.68
5.3.200.0210.04112.68
5.3.190.0190.04312.68
5.3.180.0360.11812.67
5.3.170.0180.04512.67
5.3.160.0170.04312.67
5.3.150.0230.04612.67
5.3.140.0190.04412.66
5.3.130.0170.04512.66
5.3.120.0280.09312.66
5.3.110.0190.04512.66
5.3.100.0170.04512.12
5.3.90.0210.03912.09
5.3.80.0350.08512.08
5.3.70.0160.04912.07
5.3.60.0200.04812.06
5.3.50.0190.04212.00
5.3.40.0210.04912.00
5.3.30.0350.09211.97
5.3.20.0150.05011.75
5.3.10.0190.04311.71
5.3.00.0160.04311.70
5.2.170.0120.0419.20
5.2.160.0210.0339.20
5.2.150.0300.0909.20
5.2.140.0200.0339.20
5.2.130.0260.0579.16
5.2.120.0080.0389.16
5.2.110.0160.0369.16
5.2.100.0130.0389.16
5.2.90.0150.0339.17
5.2.80.0210.0569.16
5.2.70.0150.0339.16
5.2.60.0160.0339.11
5.2.50.0110.0379.07
5.2.40.0120.0369.05
5.2.30.0230.0559.02
5.2.20.0130.0359.02
5.2.10.0130.0348.93
5.2.00.0150.0328.78
5.1.60.0130.0288.07
5.1.50.0120.0318.07
5.1.40.0190.0508.05
5.1.30.0120.0308.39
5.1.20.0110.0328.42
5.1.10.0090.0348.14
5.1.00.0110.0318.14
5.0.50.0070.0276.62
5.0.40.0100.0226.48
5.0.30.0130.0316.29
5.0.20.0110.0226.26
5.0.10.0130.0206.24
5.0.00.0060.0376.24
4.4.90.0040.0204.77
4.4.80.0050.0194.76
4.4.70.0060.0194.76
4.4.60.0040.0214.75
4.4.50.0050.0194.77
4.4.40.0080.0274.71
4.4.30.0050.0204.76
4.4.20.0070.0174.84
4.4.10.0060.0194.85
4.4.00.0060.0294.76
4.3.110.0080.0164.66
4.3.100.0100.0144.67
4.3.90.0090.0164.63
4.3.80.0070.0274.58
4.3.70.0230.0314.63
4.3.60.0090.0154.63
4.3.50.0080.0164.63
4.3.40.0070.0264.54
4.3.30.0060.0183.31
4.3.20.0030.0203.29
4.3.10.0060.0163.25
4.3.00.0000.01315.64

preferences:
48.52 ms | 401 KiB | 5 Q