3v4l.org

run code in 300+ PHP versions simultaneously
<?php $request = 'POST'; $url = '/1.0/wix/site-events'; $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.0040.01118.43
8.3.50.0100.01022.11
8.3.40.0090.00618.84
8.3.30.0070.00720.25
8.3.20.0000.00818.73
8.3.10.0040.00421.08
8.3.00.0000.00819.79
8.2.180.0110.01116.63
8.2.170.0120.00322.96
8.2.160.0100.00320.43
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00020.86
8.2.110.0070.00422.24
8.2.100.0080.00317.91
8.2.90.0000.00819.10
8.2.80.0050.00219.32
8.2.70.0050.00317.63
8.2.60.0070.00018.16
8.2.50.0040.00418.07
8.2.40.0050.00319.88
8.2.30.0040.00419.45
8.2.20.0050.00317.72
8.2.10.0030.00517.82
8.2.00.0080.00017.87
8.1.280.0180.00025.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0070.00422.46
8.1.230.0030.00721.04
8.1.220.0050.00318.77
8.1.210.0040.00418.93
8.1.200.0050.00517.35
8.1.190.0000.00817.53
8.1.180.0000.00918.10
8.1.170.0040.00418.57
8.1.160.0040.00418.99
8.1.150.0070.00018.53
8.1.140.0000.00717.43
8.1.130.0040.00417.80
8.1.120.0040.00417.39
8.1.110.0050.00317.38
8.1.100.0030.00317.33
8.1.90.0070.00017.38
8.1.80.0030.00317.38
8.1.70.0030.00317.40
8.1.60.0030.00617.57
8.1.50.0070.00017.50
8.1.40.0030.00517.52
8.1.30.0040.00417.60
8.1.20.0030.00617.59
8.1.10.0040.00417.53
8.1.00.0030.00517.41
8.0.300.0000.00720.02
8.0.290.0000.00817.18
8.0.280.0000.00818.39
8.0.270.0030.00317.25
8.0.260.0030.00316.84
8.0.250.0000.00716.87
8.0.240.0060.00316.96
8.0.230.0070.00016.92
8.0.220.0000.00716.94
8.0.210.0000.00816.81
8.0.200.0060.00016.95
8.0.190.0050.00217.02
8.0.180.0040.00416.91
8.0.170.0060.00316.88
8.0.160.0040.00416.79
8.0.150.0000.00816.75
8.0.140.0050.00216.76
8.0.130.0030.00313.27
8.0.120.0040.00416.76
8.0.110.0000.00816.90
8.0.100.0030.00616.95
8.0.90.0040.00416.91
8.0.80.0130.00716.86
8.0.70.0000.00717.02
8.0.60.0040.00416.90
8.0.50.0070.00016.79
8.0.30.0110.00617.14
8.0.20.0140.00517.40
8.0.10.0040.00417.00
8.0.00.0130.00516.88
7.4.330.0030.00316.85
7.4.320.0030.00316.49
7.4.300.0000.00616.54
7.4.290.0000.00716.67
7.4.280.0030.00316.53
7.4.270.0070.00016.63
7.4.260.0060.00013.25
7.4.250.0050.00316.59
7.4.240.0030.00316.55
7.4.230.0070.00016.72
7.4.220.0080.01116.59
7.4.210.0090.00716.57
7.4.200.0030.00516.43
7.4.190.0020.00516.75
7.4.160.0100.00616.41
7.4.150.0150.00317.40
7.4.140.0110.00717.86
7.4.130.0070.01016.51
7.4.120.0060.01016.55
7.4.110.0140.00816.55
7.4.100.0050.01416.42
7.4.90.0090.00916.51
7.4.80.0120.01219.39
7.4.70.0130.00616.59
7.4.60.0080.00816.57
7.4.50.0000.00916.47
7.4.40.0090.00622.77
7.4.30.0070.01016.56
7.4.10.0070.01315.67
7.4.00.0070.01015.27
7.3.330.0050.00013.38
7.3.320.0050.00013.36
7.3.310.0000.00816.47
7.3.300.0030.00316.33
7.3.290.0130.00016.46
7.3.280.0080.00716.34
7.3.270.0120.00617.40
7.3.260.0110.01118.24
7.3.250.0100.00916.49
7.3.240.0100.00716.47
7.3.230.0140.00416.50
7.3.210.0090.01216.30
7.3.200.0050.01119.39
7.3.190.0100.00716.44
7.3.180.0090.00616.39
7.3.170.0030.01416.49
7.3.160.0000.01616.64
7.3.130.0090.00815.54
7.3.120.0050.01215.16
7.3.110.0090.00715.44
7.3.100.0080.00815.25
7.3.90.0080.00515.30
7.3.80.0080.00915.43
7.3.70.0060.01115.35
7.3.60.0080.00515.43
7.3.50.0070.00715.39
7.3.40.0050.00715.28
7.3.30.0050.00915.26
7.3.20.0090.00517.17
7.3.10.0070.01017.14
7.3.00.0040.00817.15
7.2.330.0070.01016.53
7.2.320.0170.00316.62
7.2.310.0070.01116.54
7.2.300.0040.01416.75
7.2.290.0130.00916.89
7.2.260.0040.01215.87
7.2.250.0070.01315.69
7.2.240.0060.01215.77
7.2.230.0080.00815.57
7.2.220.0090.00415.78
7.2.210.0040.01115.70
7.2.200.0050.00815.61
7.2.190.0070.00815.59
7.2.180.0110.00615.61
7.2.170.0070.00815.56
7.2.160.0030.01015.59
7.2.150.0040.01517.37
7.2.140.0020.01017.50
7.2.130.0050.00717.54
7.2.120.0040.00817.46
7.2.110.0040.00817.42
7.2.100.0080.00717.40
7.2.90.0080.00817.53
7.2.80.0100.00517.46
7.2.70.0090.00717.37
7.2.60.0080.00617.50
7.2.50.0010.01117.43
7.2.40.0120.00217.53
7.2.30.0050.01117.52
7.2.20.0070.00917.53
7.2.10.0060.00717.41
7.2.00.0110.00217.91
7.1.330.0060.00916.22
7.1.320.0070.00716.28
7.1.310.0050.01016.31
7.1.300.0030.01116.40
7.1.290.0040.00716.22
7.1.280.0050.01116.26
7.1.270.0010.01216.16
7.1.260.0090.00416.43
7.1.250.0070.00416.33
7.1.240.0070.00516.31
7.1.230.0050.00916.29
7.1.220.0060.00516.19
7.1.210.0050.00716.35
7.1.200.0070.00816.31
7.1.190.0050.00816.32
7.1.180.0060.00716.19
7.1.170.0050.00916.23
7.1.160.0040.00816.38
7.1.150.0060.00716.36
7.1.140.0040.00916.31
7.1.130.0020.01116.36
7.1.120.0040.01116.24
7.1.110.0040.00916.16
7.1.100.0040.00816.77
7.1.90.0050.00716.34
7.1.80.0060.00916.22
7.1.70.0050.00716.63
7.1.60.0080.00917.13
7.1.50.0080.00616.45
7.1.40.0010.01116.46
7.1.30.0070.00616.34
7.1.20.0050.01116.35
7.1.10.0020.01116.38
7.1.00.0060.01417.81
7.0.330.0040.00715.79
7.0.320.0030.00815.89
7.0.310.0090.00715.86
7.0.300.0070.00615.86
7.0.290.0030.00715.85
7.0.280.0060.00916.00
7.0.270.0070.00716.01
7.0.260.0090.00715.94
7.0.250.0070.00615.97
7.0.240.0060.00616.06
7.0.230.0060.00715.94
7.0.220.0060.00916.02
7.0.210.0060.00915.91
7.0.200.0070.00816.00
7.0.190.0040.01015.94
7.0.180.0030.01115.85
7.0.170.0050.00916.00
7.0.160.0030.00916.00
7.0.150.0080.00616.01
7.0.140.0050.02417.45
7.0.130.0030.00815.94
7.0.120.0050.00916.03
7.0.110.0030.00916.00
7.0.100.0060.00915.89
7.0.90.0040.00915.89
7.0.80.0060.00715.84
7.0.70.0030.00915.91
7.0.60.0110.01516.87
7.0.50.0050.01716.40
7.0.40.0050.02715.45
7.0.30.0090.01715.49
7.0.20.0080.02015.58
7.0.10.0050.01815.55
7.0.00.0080.02615.48
5.6.400.0030.01014.88
5.6.390.0020.00915.02
5.6.380.0020.01015.10
5.6.370.0010.01315.02
5.6.360.0060.00915.06
5.6.350.0060.00915.06
5.6.340.0050.00914.72
5.6.330.0070.00414.91
5.6.320.0070.00814.83
5.6.310.0070.00515.11
5.6.300.0070.00715.06
5.6.290.0050.01014.86
5.6.280.0090.02016.45
5.6.270.0030.01014.93
5.6.260.0080.00614.88
5.6.250.0050.00814.77
5.6.240.0070.00714.88
5.6.230.0040.00914.97
5.6.220.0040.01114.90
5.6.210.0070.02316.35
5.6.200.0050.02615.81
5.6.190.0030.02616.39
5.6.180.0080.02116.16
5.6.170.0110.02016.26
5.6.160.0040.01716.29
5.6.150.0060.02815.68
5.6.140.0030.01615.74
5.6.130.0080.01915.70
5.6.120.0060.02116.46
5.6.110.0040.01716.43
5.6.100.0060.02716.43
5.6.90.0070.02416.48
5.6.80.0080.02216.24
5.6.70.0070.00614.83
5.6.60.0030.01414.73
5.6.50.0060.00814.92
5.6.40.0070.00914.85
5.6.30.0100.00214.80
5.6.20.0090.00414.96
5.6.10.0070.00814.99
5.6.00.0120.00214.92
5.5.380.0020.01214.67
5.5.370.0050.00914.81
5.5.360.0050.01014.84
5.5.350.0150.02316.21
5.5.340.0070.01915.56
5.5.330.0050.01916.12
5.5.320.0090.02216.18
5.5.310.0110.02016.10
5.5.300.0040.02215.60
5.5.290.0080.02015.71
5.5.280.0080.02416.37
5.5.270.0100.02116.23
5.5.260.0080.02616.39
5.5.250.0060.02716.19
5.5.240.0070.02516.08
5.5.230.0110.00514.68
5.5.220.0100.00514.70
5.5.210.0060.00914.70
5.5.200.0100.00814.84
5.5.190.0070.00814.84
5.5.180.0090.00514.78
5.5.170.0070.00914.82
5.5.160.0060.00814.77
5.5.150.0070.01014.88
5.5.140.0030.01414.75
5.5.130.0100.00514.92
5.5.120.0080.01114.78
5.5.110.0080.00814.68
5.5.100.0090.01014.87
5.5.90.0080.00914.81
5.5.80.0110.00514.68
5.5.70.0050.01014.71
5.5.60.0090.00814.69
5.5.50.0120.00514.92
5.5.40.0090.00514.85
5.5.30.0070.00914.80
5.5.20.0030.01114.58
5.5.10.0120.00414.86
5.5.00.0040.01114.83
5.4.450.0970.01513.93
5.4.440.0890.01414.06
5.4.430.0850.01814.03
5.4.420.0920.01314.04
5.4.410.0910.01314.12
5.4.400.0800.01613.87
5.4.390.0890.01413.77
5.4.380.0290.01613.88
5.4.370.0030.02013.96
5.4.360.0030.01913.89
5.4.350.0250.01613.97
5.4.340.0850.01313.87
5.4.330.0010.00912.31
5.4.320.0770.02013.84
5.4.310.0730.01713.90
5.4.300.0810.01713.92
5.4.290.0850.01613.89
5.4.280.0930.01413.88
5.4.270.0880.01713.87
5.4.260.0910.01913.92
5.4.250.0900.01313.82
5.4.240.0850.01214.04
5.4.230.0810.01613.87
5.4.220.0860.01413.98
5.4.210.0780.01213.91
5.4.200.0860.01614.01
5.4.190.0850.01413.98
5.4.180.0850.01413.87
5.4.170.0880.01513.90
5.4.160.0920.01413.94
5.4.150.0990.01613.92
5.4.140.0900.01413.20
5.4.130.0880.01113.27
5.4.120.0900.01313.26
5.4.110.0850.01513.36
5.4.100.0800.01213.22
5.4.90.0060.01313.35
5.4.80.0070.01413.29
5.4.70.0030.01513.27
5.4.60.0620.01213.09
5.4.50.0890.01613.15
5.4.40.0900.01413.16
5.4.30.0940.01313.27
5.4.20.0940.01613.21
5.4.10.0900.01813.20
5.4.00.0890.01813.15
5.3.290.0890.01512.82
5.3.280.0890.01512.75
5.3.270.0860.01012.77
5.3.260.0910.01412.85
5.3.250.0840.01112.87
5.3.240.0810.01312.78
5.3.230.0900.01312.82
5.3.220.0850.01512.79
5.3.210.0840.01412.73
5.3.200.0890.01412.78
5.3.190.0880.01412.74
5.3.180.0900.01212.78
5.3.170.0850.01612.80
5.3.160.1050.01612.81
5.3.150.0960.01612.77
5.3.140.0920.01312.77
5.3.130.0890.01412.75
5.3.120.0900.01412.73
5.3.110.0880.01712.77
5.3.100.0870.01612.62
5.3.90.0970.01512.67
5.3.80.0880.01712.66
5.3.70.0900.01512.61
5.3.60.0900.01712.65
5.3.50.0880.01512.59
5.3.40.0830.01112.63
5.3.30.0800.01212.64
5.3.20.0850.01412.55
5.3.10.0790.01512.56
5.3.00.0780.01512.50
5.2.170.2430.03011.20
5.2.160.2770.02711.16
5.2.150.2700.03311.13
5.2.140.2630.02311.23
5.2.130.2400.02711.34
5.2.120.2730.03311.19
5.2.110.2830.02311.33
5.2.100.2400.03311.23
5.2.90.3100.03311.07
5.2.80.2470.03311.13
5.2.70.3070.03311.05
5.2.60.2430.02710.96
5.2.50.2900.03310.98
5.2.40.1970.03311.15
5.2.30.2370.03011.21
5.2.20.2400.03011.02
5.2.10.2130.02311.01
5.2.00.2430.02010.67
5.1.60.2300.0239.95
5.1.50.2330.02310.07
5.1.40.2370.0279.93
5.1.30.2370.03010.20
5.1.20.2430.02010.31
5.1.10.2470.01310.24
5.1.00.2370.02310.05
5.0.50.1270.0178.71
5.0.40.1330.0238.59
5.0.30.1300.0308.39
5.0.20.1270.0178.20
5.0.10.1300.0208.32
5.0.00.1170.0338.23
4.4.90.1170.0176.55
4.4.80.1300.0206.55
4.4.70.1030.0176.55
4.4.60.1300.0206.55
4.4.50.1400.0176.55
4.4.40.1270.0336.55
4.4.30.1030.0176.55
4.4.20.1230.0176.55
4.4.10.1270.0236.55
4.4.00.1070.0276.55
4.3.110.1170.0136.55
4.3.100.1130.0136.55
4.3.90.1300.0206.55
4.3.80.1230.0276.55
4.3.70.1430.0136.55
4.3.60.1330.0176.55
4.3.50.1270.0136.55
4.3.40.1600.0306.55
4.3.30.0670.0176.55
4.3.20.0770.0176.55
4.3.10.0700.0206.55
4.3.00.0670.0136.55

preferences:
37.59 ms | 401 KiB | 5 Q