3v4l.org

run code in 300+ PHP versions simultaneously
<?php $request = 'POST'; $url = ''; $headers = array( 'X-Wix-Signature' => '3elavUOF0-I1_7tGz2XZKs_HSlrygsMiblpNFPKv3Ik', "X-Wix-Instance-Id" => "132fc751-9325-63d3-a605-f74e0c25192a", "X-Wix-Event-Id" => "da390885-e72f-4a93-be7f-a90220bac5c7", "X-Wix-Event-Type" => "/provision/provision", "X-Wix-Timestamp" => "2013-10-23T15:39:34.462Z", "X-Wix-Application-Id" => "132fbf95-d58e-f9ed-86e8-48b76f901d91" ); //$body = "{\n\t\"instance-id\": \"1328a7fe-e451-8780-d201-0c5d9a1fc02b\"\n}"; $body = '{"instance-id":"132fc751-9325-63d3-a605-f74e0c25192a"}'; $key = "97cfac6e-b061-4007-a03e-eb4bc199e620"; 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.0120.00318.68
8.3.50.0130.00322.17
8.3.40.0120.00918.84
8.3.30.0070.00720.29
8.3.20.0080.00018.76
8.3.10.0050.00320.91
8.3.00.0050.00319.69
8.2.180.0140.00716.88
8.2.170.0170.00322.96
8.2.160.0140.00020.53
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00517.38
8.2.110.0000.01022.20
8.2.100.0090.00317.91
8.2.90.0080.00019.35
8.2.80.0020.00519.45
8.2.70.0000.00917.48
8.2.60.0050.00318.03
8.2.50.0000.00818.07
8.2.40.0030.00520.07
8.2.30.0000.00719.44
8.2.20.0000.00817.71
8.2.10.0040.00417.57
8.2.00.0040.00417.81
8.1.280.0080.00625.92
8.1.270.0060.00322.27
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00322.59
8.1.230.0070.00420.97
8.1.220.0000.00818.77
8.1.210.0060.00319.04
8.1.200.0030.00617.22
8.1.190.0050.00317.39
8.1.180.0080.00018.10
8.1.170.0060.00318.71
8.1.160.0000.00818.82
8.1.150.0060.00318.57
8.1.140.0040.00417.52
8.1.130.0030.00317.72
8.1.120.0000.00817.47
8.1.110.0040.00417.47
8.1.100.0040.00417.36
8.1.90.0040.00417.41
8.1.80.0070.00017.43
8.1.70.0030.00317.41
8.1.60.0000.00817.49
8.1.50.0060.00317.47
8.1.40.0000.00817.60
8.1.30.0040.00417.55
8.1.20.0080.00017.55
8.1.10.0040.00417.64
8.1.00.0000.00817.53
8.0.300.0070.00019.89
8.0.290.0070.00016.93
8.0.280.0000.00718.33
8.0.270.0040.00417.19
8.0.260.0000.00816.83
8.0.250.0040.00416.99
8.0.240.0060.00316.93
8.0.230.0070.00016.99
8.0.220.0000.00716.80
8.0.210.0040.00416.93
8.0.200.0000.00716.89
8.0.190.0030.00316.84
8.0.180.0070.00016.97
8.0.170.0040.00416.77
8.0.160.0040.00416.81
8.0.150.0040.00416.94
8.0.140.0040.00416.84
8.0.130.0030.00313.42
8.0.120.0060.00316.86
8.0.110.0000.00716.94
8.0.100.0050.00317.02
8.0.90.0060.00316.97
8.0.80.0130.00316.84
8.0.70.0000.00816.82
8.0.60.0030.00616.84
8.0.50.0000.00716.95
8.0.30.0150.00317.21
8.0.20.0130.00717.43
8.0.10.0040.00416.90
8.0.00.0090.01016.87
7.4.330.0000.00514.94
7.4.320.0000.00616.43
7.4.300.0060.00016.59
7.4.290.0030.00516.52
7.4.280.0030.00316.43
7.4.270.0070.00016.67
7.4.260.0060.00013.25
7.4.250.0040.00416.57
7.4.240.0000.00716.43
7.4.230.0030.00316.67
7.4.220.0130.00316.55
7.4.210.0100.00816.60
7.4.200.0050.00316.60
7.4.190.0000.00716.38
7.4.160.0150.00416.42
7.4.150.0150.00317.40
7.4.140.0150.01217.86
7.4.130.0060.01116.43
7.4.120.0080.01116.55
7.4.110.0110.01216.51
7.4.100.0090.01316.66
7.4.90.0000.01816.61
7.4.80.0060.01819.39
7.4.70.0150.00316.57
7.4.60.0100.00616.55
7.4.50.0000.00816.46
7.4.40.0110.00322.77
7.4.30.0130.00916.57
7.4.00.0070.01115.07
7.3.330.0000.00513.44
7.3.320.0060.00013.44
7.3.310.0080.00016.24
7.3.300.0050.00216.28
7.3.290.0090.00616.38
7.3.280.0090.00616.36
7.3.270.0160.00717.40
7.3.260.0070.01418.24
7.3.250.0120.00616.42
7.3.240.0080.00816.67
7.3.230.0120.00616.39
7.3.210.0100.00716.45
7.3.200.0100.01319.39
7.3.190.0120.00616.73
7.3.180.0160.00016.59
7.3.170.0060.00916.64
7.3.160.0080.00816.32
7.3.120.0070.00715.05
7.2.330.0070.01016.68
7.2.320.0040.01216.87
7.2.310.0100.00616.69
7.2.300.0100.00716.77
7.2.290.0160.00616.59
7.2.110.0190.00316.50
7.2.60.0120.00316.87
7.2.50.0060.00617.01
7.1.200.0040.01115.70
7.1.70.0020.00517.20
7.1.60.0080.00417.32
7.1.50.0060.01617.04
7.1.00.0000.03722.31
7.0.200.0060.00916.84
7.0.140.0000.07322.05
7.0.110.0030.04719.91
7.0.100.0000.08720.02
7.0.90.0030.05320.04
7.0.80.0170.04319.88
7.0.70.0100.05319.99
7.0.60.0070.05320.09
7.0.50.0000.04019.99
7.0.40.0000.06719.78
7.0.30.0070.06719.71
7.0.20.0000.08319.70
7.0.10.0100.07319.77
7.0.00.0030.05719.68
5.6.280.0070.07020.82
5.6.260.0070.07020.70
5.6.250.0070.08020.59
5.6.240.0070.07720.58
5.6.230.0070.06320.69
5.6.220.0030.07320.55
5.6.210.0070.04020.68
5.6.200.0030.03720.56
5.6.190.0030.04020.65
5.6.180.0000.04720.59
5.6.170.0030.07720.60
5.6.160.0000.04320.66
5.6.150.0070.08320.86
5.6.140.0070.08020.54
5.6.130.0200.06020.63
5.6.120.0200.07320.69
5.6.110.0070.08320.61
5.6.100.0000.08020.55
5.6.90.0070.08020.54
5.6.80.0200.06320.24
5.6.70.0130.06720.02
5.6.60.0100.07019.99
5.6.50.0130.07020.04
5.6.40.0070.07719.98
5.6.30.0000.08319.99
5.6.20.0030.08320.07
5.6.10.0170.06719.91
5.6.00.0030.03719.99
5.5.380.0100.07717.47
5.5.370.0030.07017.50
5.5.360.0100.08017.68
5.5.350.0000.07017.55
5.5.340.0030.05018.12
5.5.330.0030.04318.23
5.5.320.0100.03018.07
5.5.310.0000.04318.10
5.5.300.0170.08018.05
5.5.290.0070.08317.93
5.5.280.0000.06717.95
5.5.270.0000.07718.12
5.5.260.0030.04018.07
5.5.250.0170.03317.75
5.5.240.0030.03317.62
5.5.230.0070.06317.31
5.5.220.0130.06017.47
5.5.210.0000.03717.51
5.5.200.0070.07717.57
5.5.190.0070.03717.40
5.5.180.0030.07317.59
5.5.160.0130.06317.45
5.5.150.0000.03717.26
5.5.140.0100.03717.18
5.5.130.0100.07017.58
5.5.120.0100.07317.30
5.5.110.0070.08017.46
5.5.100.0000.04717.18
5.5.90.0100.07017.38
5.5.80.0070.07717.20
5.5.70.0070.05717.32
5.5.60.0000.05317.17
5.5.50.0030.07717.29
5.5.40.0070.07317.29
5.5.30.0100.05317.47
5.5.20.0000.04317.15
5.5.10.0070.07317.17
5.5.00.0070.07717.46
5.4.450.0030.06319.55
5.4.440.0030.08019.36
5.4.430.0100.07719.50
5.4.420.0000.08719.55
5.4.410.0070.08019.21
5.4.400.0070.07019.02
5.4.390.0030.08019.32
5.4.380.0030.08019.26
5.4.370.0030.08719.00
5.4.360.0100.03719.34
5.4.350.0030.06719.32
5.4.340.0070.07719.09
5.4.320.0070.06319.19
5.4.310.0100.06719.23
5.4.300.0130.07019.08
5.4.290.0070.05718.95
5.4.280.0030.04319.19
5.4.270.0030.07719.03
5.4.260.0030.07319.00
5.4.250.0070.07018.97
5.4.240.0100.07019.11
5.4.230.0070.07719.00
5.4.220.0030.07019.00
5.4.210.0030.04018.98
5.4.200.0070.07718.94
5.4.190.0030.04319.17
5.4.180.0070.04319.16
5.4.170.0070.07719.17
5.4.160.0070.08018.96
5.4.150.0130.05718.99
5.4.140.0000.08016.44
5.4.130.0030.04316.43
5.4.120.0000.05716.44
5.4.110.0130.07016.36
5.4.100.0130.03316.50
5.4.90.0030.07316.52
5.4.80.0000.06716.55
5.4.70.0070.05316.39
5.4.60.0100.07016.45
5.4.50.0100.07316.42
5.4.40.0200.03016.43
5.4.30.0000.06316.53
5.4.20.0070.07716.53
5.4.10.0030.07016.39
5.4.00.0100.06716.13
5.3.290.0070.05714.68
5.3.280.0070.08014.73
5.3.270.0130.06314.62
5.3.260.0000.08314.60
5.3.250.0030.07714.58
5.3.240.0100.04014.63
5.3.230.0130.07314.61
5.3.220.0130.05714.59
5.3.210.0070.07714.58
5.3.200.0070.07014.59
5.3.190.0030.08314.56
5.3.180.0030.04314.71
5.3.170.0030.04314.56
5.3.160.0030.07314.57
5.3.150.0070.07014.52
5.3.140.0030.07014.79
5.3.130.0030.07714.58
5.3.120.0170.06314.60
5.3.110.0000.08314.59
5.3.100.0100.06314.18
5.3.90.0100.06714.03
5.3.80.0070.07714.02
5.3.70.0030.07714.11
5.3.60.0130.06714.04
5.3.50.0070.06313.94
5.3.40.0070.06713.93
5.3.30.0030.07713.94
5.3.20.0070.04013.71
5.3.10.0070.06313.66
5.3.00.0130.07013.62
5.2.170.0070.03711.93
5.2.160.0070.03011.93
5.2.150.0000.04711.93
5.2.140.0000.06711.93
5.2.130.0070.06011.93
5.2.120.0100.05311.93
5.2.110.0070.06011.93
5.2.100.0030.05711.93
5.2.90.0000.06011.93
5.2.80.0000.06711.93
5.2.70.0000.04011.93
5.2.60.0070.05311.93
5.2.50.0000.06311.93
5.2.40.0030.04711.93
5.2.30.0100.05311.93
5.2.20.0000.06311.93
5.2.10.0000.03011.93
5.2.00.0100.06011.93
5.1.60.0170.04011.93
5.1.50.0000.03311.93
5.1.40.0000.03311.93
5.1.30.0030.05311.93
5.1.20.0030.05311.93
5.1.10.0070.05311.93
5.1.00.0100.05011.93
5.0.50.0000.02711.93
5.0.40.0000.04711.93
5.0.30.0130.02711.93
5.0.20.0000.04711.93
5.0.10.0000.03711.93
5.0.00.0030.07011.93
4.4.90.0000.01711.93
4.4.80.0000.02011.93
4.4.70.0000.03711.93
4.4.60.0030.02011.93
4.4.50.0030.02311.93
4.4.40.0000.04011.93
4.4.30.0070.03011.93
4.4.20.0030.03011.93
4.4.10.0000.04011.93
4.4.00.0070.03311.93
4.3.110.0000.03311.93
4.3.100.0000.03711.93
4.3.90.0070.03011.93
4.3.80.0000.05311.93
4.3.70.0000.02011.93
4.3.60.0030.03011.93
4.3.50.0000.02711.93
4.3.40.0030.05011.93
4.3.30.0000.02711.93
4.3.20.0000.03711.93
4.3.10.0000.03711.93
4.3.00.0070.03011.93

preferences:
40.76 ms | 401 KiB | 5 Q