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 .= $request; $result .= "\n"; $result .= $url; $result .= "\n"; ksort($headers); $first = true; foreach ($headers as $header) { if ($header != 'x-wix-signature' && $first == true) { $result = $result . $header; $first = false; } else if ($header != 'x-wix-signature') { $result = $result . ',' . $header; } } $result = $result . "\n" . $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.0130.00618.56
8.3.50.0080.01217.35
8.3.40.0120.00318.94
8.3.30.0120.00318.67
8.3.20.0040.00418.77
8.3.10.0060.00320.48
8.3.00.0030.00617.59
8.2.180.0110.00816.50
8.2.170.0110.00422.96
8.2.160.0040.01622.25
8.2.150.0030.00624.18
8.2.140.0070.00724.66
8.2.130.0040.00426.16
8.2.120.0040.00419.95
8.2.110.0030.00621.03
8.2.100.0060.00617.91
8.2.90.0080.00019.17
8.2.80.0040.00418.05
8.2.70.0100.00317.63
8.2.60.0000.00818.04
8.2.50.0000.00818.07
8.2.40.0080.00018.22
8.2.30.0070.00018.20
8.2.20.0050.00217.73
8.2.10.0020.00517.75
8.2.00.0040.00417.70
8.1.270.0040.00424.66
8.1.260.0030.00626.35
8.1.250.0000.00728.09
8.1.240.0090.00020.93
8.1.230.0030.01020.74
8.1.220.0000.00818.77
8.1.210.0050.00319.03
8.1.200.0000.00917.23
8.1.190.0040.00417.39
8.1.180.0000.00818.10
8.1.170.0030.00618.96
8.1.160.0000.00818.95
8.1.150.0040.00418.56
8.1.140.0040.00417.54
8.1.130.0030.00317.75
8.1.120.0050.00217.53
8.1.110.0040.00417.45
8.1.100.0040.00417.47
8.1.90.0040.00417.51
8.1.80.0050.00317.41
8.1.70.0070.00017.44
8.1.60.0000.00917.48
8.1.50.0040.00417.48
8.1.40.0000.00717.55
8.1.30.0040.00417.55
8.1.20.0000.00817.64
8.1.10.0000.00717.61
8.1.00.0040.00417.41
8.0.300.0040.00420.02
8.0.290.0050.00216.63
8.0.280.0030.00318.37
8.0.270.0070.00017.30
8.0.260.0000.00818.47
8.0.250.0040.00416.92
8.0.240.0000.00816.97
8.0.230.0000.00716.92
8.0.220.0000.00716.86
8.0.210.0000.00816.96
8.0.200.0070.00016.84
8.0.190.0080.00016.86
8.0.180.0040.00416.82
8.0.170.0030.00516.90
8.0.160.0000.00816.97
8.0.150.0000.00816.91
8.0.140.0000.01016.80
8.0.130.0000.00713.43
8.0.120.0000.00816.72
8.0.110.0050.00216.77
8.0.100.0030.00516.80
8.0.90.0040.00416.94
8.0.80.0040.01216.79
8.0.70.0050.00316.94
8.0.60.0080.00016.86
8.0.50.0020.00516.88
8.0.30.0080.01417.23
8.0.20.0130.00616.87
8.0.10.0040.00317.02
8.0.00.0090.01016.61
7.4.330.0020.00213.05
7.4.320.0030.00316.54
7.4.300.0040.00416.57
7.4.290.0000.00716.60
7.4.280.0080.00216.45
7.4.270.0000.00716.57
7.4.260.0050.00013.34
7.4.250.0040.00416.61
7.4.240.0000.00716.63
7.4.230.0070.00016.52
7.4.220.0070.01016.48
7.4.210.0060.01016.57
7.4.200.0000.00716.70
7.4.190.0050.00216.52
7.4.160.0100.01316.71
7.4.150.0090.00916.44
7.4.140.0080.00916.62
7.4.130.0050.01316.60
7.4.120.0080.00816.54
7.4.110.0110.00716.54
7.4.100.0140.00316.59
7.4.90.0140.00416.37
7.4.80.0140.00716.50
7.4.70.0060.01016.66
7.4.60.0070.01016.62
7.4.50.0070.00016.46
7.4.40.0030.00816.41
7.4.30.0070.01016.39
7.4.10.0130.00615.22
7.4.00.0050.01214.86
7.3.330.0000.00613.20
7.3.320.0000.00613.40
7.3.310.0040.00416.43
7.3.300.0000.00716.41
7.3.290.0110.00316.43
7.3.280.0080.01016.35
7.3.270.0100.00616.49
7.3.260.0100.00716.45
7.3.250.0140.00616.56
7.3.240.0170.00316.70
7.3.230.0040.01216.36
7.3.210.0140.00316.45
7.3.200.0100.00919.39
7.3.190.0000.02216.64
7.3.180.0100.00716.67
7.3.170.0100.00716.53
7.3.160.0130.00616.46
7.3.130.0090.00914.76
7.3.120.0060.00914.92
7.3.110.0030.01514.70
7.3.100.0070.00914.79
7.3.90.0090.00515.04
7.3.80.0070.00714.80
7.3.70.0080.00514.87
7.3.60.0120.00314.92
7.3.50.0020.01114.77
7.3.40.0050.00814.81
7.3.30.0040.00914.69
7.3.20.0110.00516.49
7.3.10.0080.00816.57
7.3.00.0080.00516.60
7.2.330.0150.00316.53
7.2.320.0060.01516.56
7.2.310.0100.01016.72
7.2.300.0090.00916.50
7.2.290.0050.01116.77
7.2.260.0030.01615.16
7.2.250.0070.01015.18
7.2.240.0050.01215.00
7.2.230.0090.00615.18
7.2.220.0030.01215.21
7.2.210.0050.00915.21
7.2.200.0100.00315.14
7.2.190.0110.00515.04
7.2.180.0060.00715.12
7.2.170.0020.01215.02
7.2.160.0120.00415.02
7.2.150.0130.00317.01
7.2.140.0100.00717.14
7.2.130.0050.01116.73
7.2.120.0070.01116.92
7.2.110.0090.00816.96
7.2.100.0120.00517.00
7.2.90.0130.00716.65
7.2.80.0100.00617.05
7.2.70.0150.00616.92
7.2.60.0070.01016.69
7.2.50.0070.01016.90
7.2.40.0080.00816.92
7.2.30.0110.00816.91
7.2.20.0140.00316.95
7.2.10.0060.00716.82
7.2.00.0050.00916.87
7.1.330.0080.00515.85
7.1.320.0070.00915.85
7.1.310.0000.01415.79
7.1.300.0030.01015.73
7.1.290.0060.00815.82
7.1.280.0020.01215.89
7.1.270.0030.00915.85
7.1.260.0050.00715.47
7.1.250.0040.00715.74
7.1.240.0110.00615.65
7.1.230.0100.00715.65
7.1.220.0110.00715.86
7.1.210.0060.00315.73
7.1.200.0030.00715.55
7.1.190.0070.00715.83
7.1.180.0090.00315.82
7.1.170.0070.00315.93
7.1.160.0040.00815.90
7.1.150.0060.00616.00
7.1.140.0040.01115.81
7.1.130.0100.00016.01
7.1.120.0040.01415.71
7.1.110.0120.00315.67
7.1.100.0040.01115.83
7.1.90.0060.00615.94
7.1.80.0120.00615.89
7.1.70.0020.00716.37
7.1.60.0070.01217.52
7.1.50.0020.01516.21
7.1.40.0070.01015.92
7.1.30.0120.00316.00
7.1.20.0110.00316.00
7.1.10.0120.00015.66
7.1.00.0050.04019.02
7.0.330.0070.00715.41
7.0.320.0030.00915.44
7.0.310.0030.00615.48
7.0.300.0040.00715.43
7.0.290.0030.01015.51
7.0.280.0100.00715.23
7.0.270.0030.01015.21
7.0.260.0030.01515.44
7.0.250.0000.01615.48
7.0.240.0060.00615.66
7.0.230.0070.00715.54
7.0.220.0030.01215.30
7.0.210.0070.00715.44
7.0.200.0040.00716.22
7.0.190.0000.01415.11
7.0.180.0030.01015.31
7.0.170.0070.00715.28
7.0.160.0120.00315.65
7.0.150.0030.00915.57
7.0.140.0050.03818.76
7.0.130.0090.00615.34
7.0.120.0050.04418.71
7.0.110.0060.00615.58
7.0.100.0100.00715.44
7.0.90.0100.00315.37
7.0.80.0030.00715.37
7.0.70.0030.00915.46
7.0.60.0140.02817.75
7.0.50.0100.02216.62
7.0.40.0030.04416.73
7.0.30.0070.04016.84
7.0.20.0070.02316.77
7.0.10.0020.03316.88
7.0.00.0050.04516.67
5.6.400.0100.00314.20
5.6.390.0060.00614.46
5.6.380.0040.00814.40
5.6.370.0170.00014.72
5.6.360.0080.00814.73
5.6.350.0060.00314.67
5.6.340.0030.01014.43
5.6.330.0100.00014.31
5.6.320.0090.00614.80
5.6.310.0070.00714.64
5.6.300.0000.01414.41
5.6.290.0000.01614.04
5.6.280.0050.04017.64
5.6.270.0000.01514.31
5.6.260.0060.00614.56
5.6.250.0070.01014.77
5.6.240.0040.01114.27
5.6.230.0070.00714.33
5.6.220.0040.01114.31
5.6.210.0060.03917.40
5.6.200.0070.04216.33
5.6.190.0070.04717.46
5.6.180.0080.03217.48
5.6.170.0080.03917.34
5.6.160.0050.04817.42
5.6.150.0110.04117.40
5.6.140.0080.04117.47
5.6.130.0050.03817.57
5.6.120.0050.03417.41
5.6.110.0100.04717.34
5.6.100.0050.04317.22
5.6.90.0060.04617.25
5.6.80.0020.03116.93
5.6.70.0070.04117.07
5.6.60.0050.02816.88
5.6.50.0020.03016.87
5.6.40.0150.03317.13
5.6.30.0080.03816.88
5.6.20.0100.03517.05
5.6.10.0050.04716.79
5.6.00.0110.03817.00
5.5.380.0000.01314.43
5.5.370.0100.00714.25
5.5.360.0090.00914.27
5.5.350.0040.02917.60
5.5.340.0100.04216.34
5.5.330.0080.04017.35
5.5.320.0070.05217.37
5.5.310.0070.04417.45
5.5.300.0070.04717.23
5.5.290.0030.03717.26
5.5.280.0030.02917.24
5.5.270.0070.02517.38
5.5.260.0080.04017.39
5.5.250.0110.03016.85
5.5.240.0060.03916.98
5.5.230.0070.03316.82
5.5.220.0040.04616.84
5.5.210.0100.03816.77
5.5.200.0080.02316.90
5.5.190.0050.04716.96
5.5.180.0100.04116.76
5.5.170.0030.00913.94
5.5.160.0070.04416.96
5.5.150.0050.03416.81
5.5.140.0030.04616.78
5.5.130.0090.02716.66
5.5.120.0050.02716.88
5.5.110.0050.04016.68
5.5.100.0050.03716.75
5.5.90.0030.04216.58
5.5.80.0070.04416.83
5.5.70.0040.04516.82
5.5.60.0040.04516.57
5.5.50.0020.04816.71
5.5.40.0060.04116.66
5.5.30.0030.03416.58
5.5.20.0080.02316.64
5.5.10.0080.02116.82
5.5.00.0070.03916.66
5.4.450.0090.03515.59
5.4.440.0070.02215.71
5.4.430.0060.02315.71
5.4.420.0080.04015.65
5.4.410.0040.02415.64
5.4.400.0100.03315.50
5.4.390.0070.02415.38
5.4.380.0090.03915.50
5.4.370.0010.02415.48
5.4.360.0100.01815.46
5.4.350.0080.03815.50
5.4.340.0090.04015.36
5.4.330.0080.00411.84
5.4.320.0110.03815.55
5.4.310.0080.03815.46
5.4.300.0050.03815.42
5.4.290.0060.03815.47
5.4.280.0070.03515.47
5.4.270.0050.04415.35
5.4.260.0090.03615.49
5.4.250.0080.02315.42
5.4.240.0100.04015.34
5.4.230.0050.03815.44
5.4.220.0030.04615.38
5.4.210.0080.03815.54
5.4.200.0030.02715.46
5.4.190.0090.03715.34
5.4.180.0080.01815.49
5.4.170.0040.04615.50
5.4.160.0110.02215.35
5.4.150.0030.04815.38
5.4.140.0090.02514.15
5.4.130.0100.03814.19
5.4.120.0110.03514.08
5.4.110.0080.02914.12
5.4.100.0070.03314.17
5.4.90.0090.04014.07
5.4.80.0080.03514.12
5.4.70.0030.02614.13
5.4.60.0050.02214.14
5.4.50.0030.04314.06
5.4.40.0080.02114.13
5.4.30.0080.03814.09
5.4.20.0050.04314.05
5.4.10.0040.02514.06
5.4.00.0080.02313.77
5.3.290.0080.03813.21
5.3.280.0050.04213.22
5.3.270.0040.04413.17
5.3.260.0020.03913.24
5.3.250.0030.03613.24
5.3.240.0060.02113.25
5.3.230.0040.02313.22
5.3.220.0030.04113.23
5.3.210.0070.03213.23
5.3.200.0040.04213.21
5.3.190.0080.03713.21
5.3.180.0050.03213.22
5.3.170.0060.03913.20
5.3.160.0050.04013.19
5.3.150.0110.03813.22
5.3.140.0060.02713.23
5.3.130.0080.03513.23
5.3.120.0030.03013.20
5.3.110.0040.02613.20
5.3.100.0000.02612.94
5.3.90.0040.02112.96
5.3.80.0030.03113.01
5.3.70.0050.02212.93
5.3.60.0050.02412.95
5.3.50.0050.03912.88
5.3.40.0060.03412.92
5.3.30.0020.02512.91
5.3.20.0100.03512.77
5.3.10.0090.03712.75
5.3.00.0030.03012.77
5.2.170.0070.06311.12
5.2.160.0000.07311.09
5.2.150.0100.03711.11
5.2.140.0000.07011.20
5.2.130.0070.03311.18
5.2.120.0070.04311.00
5.2.110.0100.06011.18
5.2.100.0030.03311.18
5.2.90.0030.04311.11
5.2.80.0030.06311.15
5.2.70.0000.05711.09
5.2.60.0070.05711.11
5.2.50.0030.06310.98
5.2.40.0030.06010.97
5.2.30.0000.06711.11
5.2.20.0070.05710.98
5.2.10.0070.04010.87
5.2.00.0000.07710.68
5.1.60.0070.0339.95
5.1.50.0000.03010.01
5.1.40.0030.0539.98
5.1.30.0070.03010.33
5.1.20.0030.02710.32
5.1.10.0070.05310.09
5.1.00.0030.05710.04
5.0.50.0070.0438.47
5.0.40.0030.0438.40
5.0.30.0030.0608.30
5.0.20.0000.0308.17
5.0.10.0000.0378.16
5.0.00.0070.0438.18
4.4.90.0070.0307.07
4.4.80.0000.0377.07
4.4.70.0100.0277.07
4.4.60.0000.0377.07
4.4.50.0030.0237.07
4.4.40.0000.0337.07
4.4.30.0000.0177.07
4.4.20.0000.0207.07
4.4.10.0070.0107.07
4.4.00.0000.0407.07
4.3.110.0030.0177.07
4.3.100.0000.0377.07
4.3.90.0000.0207.07
4.3.80.0070.0477.07
4.3.70.0030.0307.07
4.3.60.0030.0307.07
4.3.50.0000.0207.07
4.3.40.0030.0277.07
4.3.30.0030.0177.07
4.3.20.0070.0307.07
4.3.10.0000.0307.07
4.3.00.0000.0377.07

preferences:
62.3 ms | 400 KiB | 5 Q