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);var_dump($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.70.0130.00616.58
8.3.60.0090.01218.57
8.3.50.0110.00722.02
8.3.40.0150.00018.79
8.3.30.0140.00020.25
8.3.20.0080.00018.77
8.3.10.0000.00820.94
8.3.00.0080.00019.68
8.2.180.0180.00316.88
8.2.170.0120.00422.96
8.2.160.0120.00320.47
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00420.90
8.2.110.0060.00322.20
8.2.100.0040.00817.78
8.2.90.0000.00819.21
8.2.80.0030.00619.41
8.2.70.0040.00417.63
8.2.60.0040.00418.04
8.2.50.0080.00018.07
8.2.40.0040.00420.07
8.2.30.0070.00019.41
8.2.20.0060.00317.66
8.2.10.0080.00017.82
8.2.00.0050.00317.74
8.1.280.0090.00625.92
8.1.270.0050.00223.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.64
8.1.230.0080.00420.85
8.1.220.0050.00318.77
8.1.210.0050.00318.84
8.1.200.0040.00417.35
8.1.190.0030.00517.54
8.1.180.0030.00518.10
8.1.170.0040.00418.47
8.1.160.0040.00418.89
8.1.150.0000.00718.64
8.1.140.0000.00717.48
8.1.130.0000.00717.89
8.1.120.0040.00417.54
8.1.110.0050.00217.50
8.1.100.0040.00417.36
8.1.90.0050.00217.45
8.1.80.0040.00417.48
8.1.70.0040.00417.37
8.1.60.0030.00517.61
8.1.50.0000.00817.52
8.1.40.0060.00317.59
8.1.30.0050.00317.67
8.1.20.0060.00317.68
8.1.10.0050.00317.49
8.1.00.0070.00317.54
8.0.300.0040.00419.88
8.0.290.0000.00817.18
8.0.280.0000.00718.46
8.0.270.0040.00417.28
8.0.260.0070.00016.80
8.0.250.0040.00416.95
8.0.240.0000.00817.03
8.0.230.0000.00716.96
8.0.220.0040.00416.92
8.0.210.0000.00816.95
8.0.200.0030.00316.95
8.0.190.0050.00316.94
8.0.180.0020.00516.88
8.0.170.0040.00416.79
8.0.160.0000.00816.91
8.0.150.0000.00716.84
8.0.140.0070.00016.77
8.0.130.0000.00713.27
8.0.120.0000.00816.75
8.0.110.0070.00016.82
8.0.100.0030.00616.79
8.0.90.0000.00816.95
8.0.80.0110.00716.87
8.0.70.0050.00216.87
8.0.60.0040.00416.73
8.0.50.0040.00416.86
8.0.30.0070.01217.10
8.0.20.0090.01117.40
8.0.10.0050.00316.86
8.0.00.0120.01016.73
7.4.330.0000.00515.02
7.4.320.0030.00316.64
7.4.300.0030.00316.64
7.4.290.0050.00316.48
7.4.280.0030.00316.37
7.4.270.0040.00416.49
7.4.260.0000.00513.40
7.4.250.0040.00416.52
7.4.240.0030.00316.63
7.4.230.0030.00316.66
7.4.220.0000.01616.41
7.4.210.0050.01016.55
7.4.200.0030.00316.29
7.4.190.0000.00716.62
7.4.160.0140.00316.39
7.4.150.0100.01017.40
7.4.140.0110.01117.86
7.4.130.0050.01316.48
7.4.120.0100.00816.55
7.4.110.0120.01316.46
7.4.100.0130.00316.45
7.4.90.0080.01216.50
7.4.80.0090.01519.39
7.4.70.0060.01216.45
7.4.60.0090.00916.77
7.4.50.0000.00716.38
7.4.40.0000.01022.77
7.4.30.0090.00916.45
7.3.330.0000.00513.44
7.3.320.0030.00313.32
7.3.310.0030.00316.42
7.3.300.0030.00316.41
7.3.290.0100.01016.29
7.3.280.0080.00816.37
7.3.270.0090.00917.40
7.3.260.0120.01118.24
7.3.250.0100.00816.49
7.3.240.0100.00716.59
7.3.230.0120.00616.56
7.3.210.0110.00516.77
7.3.200.0090.00919.39
7.3.190.0130.00316.36
7.3.180.0090.00616.50
7.3.170.0060.00916.63
7.3.160.0110.00916.51
7.2.330.0100.00716.88
7.2.320.0060.01016.79
7.2.310.0030.01416.80
7.2.300.0070.01016.46
7.2.290.0090.01016.83
7.1.70.0670.00715.51
7.1.60.0550.00715.51
7.1.50.0440.01515.00
7.1.40.0460.00714.77
7.1.30.0410.00714.76
7.1.20.0410.00814.76
7.1.10.0500.01014.76
7.1.00.0610.00014.91
7.0.200.0430.00915.16
7.0.190.2970.00715.02
7.0.180.0520.00414.76
7.0.170.0400.00614.76
7.0.160.0500.00414.76
7.0.150.0490.01414.76
7.0.140.0600.01014.76
7.0.130.0520.00714.86
7.0.120.0560.01114.79
7.0.110.0500.00314.76
7.0.100.0550.00614.76
7.0.90.0480.00814.76
7.0.80.0570.00914.76
7.0.70.0540.01114.76
7.0.60.0750.00014.76
7.0.50.0630.00714.76
7.0.40.0100.00214.76
7.0.30.0060.00614.76
7.0.20.0000.01314.76
7.0.10.0040.01214.76
7.0.00.0100.00514.76
5.6.300.0070.08320.63
5.6.290.0110.04320.62
5.6.280.0200.03720.91
5.6.270.0000.05420.88
5.6.260.0070.06120.98
5.6.250.0100.04121.04
5.6.240.0140.05020.98
5.6.230.0070.05221.00
5.6.220.0070.04820.70
5.6.210.0070.04420.81
5.6.200.0170.03821.01
5.6.190.0150.03820.76
5.6.180.0030.05120.83
5.6.170.0130.04220.82
5.6.160.0130.03820.98
5.6.150.0120.03820.98
5.6.140.0060.04420.79
5.6.130.0100.07320.82
5.6.120.0040.04620.91
5.6.110.0110.04320.96
5.6.100.0110.04220.88
5.6.90.0070.06120.95
5.6.80.0110.04620.38
5.6.70.0070.04620.37
5.6.60.0110.03920.20
5.6.50.0060.04420.36
5.6.40.0070.04020.10
5.6.30.0130.04020.20
5.6.20.0160.04420.16
5.6.10.0100.04120.29
5.6.00.0170.03720.31
5.5.380.0040.04717.43
5.5.370.0100.03817.55
5.5.360.0120.04217.43
5.5.350.0160.03117.58
5.5.340.0070.04617.93
5.5.330.0040.05018.02
5.5.320.0060.04117.78
5.5.310.0100.04818.03
5.5.300.0070.04018.18
5.5.290.0000.04718.03
5.5.280.0030.04718.13
5.5.270.0070.04418.08
5.5.260.0090.04017.84
5.5.250.0120.03417.87
5.5.240.0070.04317.39
5.5.230.0140.03917.50
5.5.220.0060.03917.12
5.5.210.0030.04517.47
5.5.200.0100.04917.37
5.5.190.0070.03817.05
5.5.180.0070.03817.45
5.5.160.0110.03517.54
5.5.150.0070.03817.21
5.5.140.0030.04517.44
5.5.130.0070.03717.38
5.5.120.0030.04417.43
5.5.110.0230.03717.05
5.5.100.0040.04617.27
5.5.90.0070.03516.96
5.5.80.0000.04716.99
5.5.70.0070.04117.34
5.5.60.0100.07017.24
5.5.50.0130.05317.42
5.5.40.0100.03817.25
5.5.30.0040.04617.33
5.5.20.0140.03417.37
5.5.10.0100.03817.25
5.5.00.0030.04317.06
5.4.450.0140.05019.31
5.4.440.0040.04319.56
5.4.430.0040.04919.24
5.4.420.0090.03719.53
5.4.410.0000.04719.27
5.4.400.0000.04318.99
5.4.390.0120.03319.23
5.4.380.0170.03019.09
5.4.370.0070.04219.23
5.4.360.0070.04219.14
5.4.350.0070.08018.91
5.4.340.0000.04819.23
5.4.320.0030.04518.95
5.4.310.0100.03919.14
5.4.300.0070.03719.21
5.4.290.0000.04319.16
5.4.280.0070.03718.98
5.4.270.0060.04218.98
5.4.260.0090.03819.23
5.4.250.0130.03619.06
5.4.240.0070.03819.16
5.4.230.0070.03519.08
5.4.220.0100.07819.11
5.4.210.0030.04019.20
5.4.200.0130.03319.14
5.4.190.0090.03518.88
5.4.180.0070.04119.12
5.4.170.0190.04119.24
5.4.160.0000.04519.06
5.4.150.0100.03718.96
5.4.140.0000.04416.77
5.4.130.0000.04516.59
5.4.120.0070.03816.75
5.4.110.0110.05316.72
5.4.100.0000.04516.77
5.4.90.0070.03416.77
5.4.80.0040.05416.73
5.4.70.0250.03516.59
5.4.60.0150.02616.46
5.4.50.0030.04816.61
5.4.40.0030.03816.80
5.4.30.0060.03516.46
5.4.20.0100.07516.38
5.4.10.0100.03416.59
5.4.00.0030.04015.89
5.3.290.0070.04714.86
5.3.280.0060.04414.96
5.3.270.0030.03914.76
5.3.260.0040.03914.90
5.3.250.0060.03614.79
5.3.240.0100.03514.87
5.3.230.0000.04514.76
5.3.220.0090.05014.76
5.3.210.0120.03714.80
5.3.200.0060.03414.86
5.3.190.0070.03614.88
5.3.180.0030.03814.83
5.3.170.0100.03714.76
5.3.160.0070.07014.87
5.3.150.0100.07714.76
5.3.140.0030.04014.76
5.3.130.0030.04214.82
5.3.120.0130.07214.86
5.3.110.0120.03114.79
5.3.100.0070.05014.76
5.3.90.0100.04814.76
5.3.80.0090.03414.76
5.3.70.0100.03514.76
5.3.60.0070.03614.76
5.3.50.0110.03014.76
5.3.40.0000.04314.76
5.3.30.0090.03414.76
5.3.20.0030.03514.76
5.3.10.0060.03314.76
5.3.00.0210.02714.76
5.2.170.0070.02614.76
5.2.160.0060.03214.76
5.2.150.0030.03114.76
5.2.140.0030.03014.76
5.2.130.0100.03314.76
5.2.120.0110.02214.76
5.2.110.0070.03214.76
5.2.100.0000.03314.76
5.2.90.0030.05914.76
5.2.80.0030.03714.76
5.2.70.0030.03114.76
5.2.60.0030.03114.76
5.2.50.0030.03814.76
5.2.40.0100.04314.76
5.2.30.0030.03214.76
5.2.20.0040.02914.76
5.2.10.0070.02914.76
5.2.00.0060.02814.76
5.1.60.0060.02814.76
5.1.50.0090.02014.76
5.1.40.0060.02414.76
5.1.30.0030.03714.76
5.1.20.0000.03214.76
5.1.10.0030.02914.76
5.1.00.0000.02914.76
5.0.50.0060.01814.76
5.0.40.0100.01314.76
5.0.30.0030.03014.76
5.0.20.0140.02014.76
5.0.10.0060.01614.76
5.0.00.0000.03314.76
4.4.90.0070.01014.76
4.4.80.0030.01514.76
4.4.70.0030.01714.76
4.4.60.0000.01814.76
4.4.50.0090.01214.76
4.4.40.0030.02414.76
4.4.30.0080.01414.76
4.4.20.0040.01814.76
4.4.10.0040.01514.76
4.4.00.0070.02714.76
4.3.110.0040.01814.76
4.3.100.0000.02014.76
4.3.90.0040.01514.76
4.3.80.0030.02314.76
4.3.70.0060.01614.76
4.3.60.0070.01514.76
4.3.50.0030.01714.76
4.3.40.0030.02514.76
4.3.30.0030.01714.76
4.3.20.0000.01814.76
4.3.10.0000.01814.76
4.3.00.0030.01414.76

preferences:
42 ms | 401 KiB | 5 Q