3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Task 1: Decode secret word * * $data variable (defined below) is an array of digits, that represents binary data. Every element of array * is a single-byte char code. * * The task is to decompress gzipped binary data, then to decode the result as base 64 encoded string and * to print to output the result string - this is a secret word. * */ $data = [120, 156, 11, 204, 13, 43, 142, 140, 240, 50, 76, 174, 116, 181, 5, 0, 27, 141, 4, 18]; // write your code here...

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.0140.00718.37
8.3.50.0110.00522.06
8.3.40.0140.00018.77
8.3.30.0140.00018.63
8.3.20.0040.00420.29
8.3.10.0040.00423.61
8.3.00.0050.00319.04
8.2.180.0120.00318.16
8.2.170.0100.01022.96
8.2.160.0070.00720.52
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00022.26
8.2.120.0080.00026.35
8.2.110.0040.00819.37
8.2.100.0040.00817.90
8.2.90.0000.00819.20
8.2.80.0050.00317.97
8.2.70.0050.00317.63
8.2.60.0040.00417.93
8.2.50.0000.00818.10
8.2.40.0030.00620.55
8.2.30.0080.00019.25
8.2.20.0000.00717.64
8.2.10.0030.00517.87
8.2.00.0070.00017.99
8.1.280.0130.01025.92
8.1.270.0040.00423.91
8.1.260.0070.00028.09
8.1.250.0000.00728.09
8.1.240.0090.00021.17
8.1.230.0040.00817.83
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0050.00517.10
8.1.190.0060.00317.10
8.1.180.0060.00318.10
8.1.170.0040.00418.59
8.1.160.0050.00219.01
8.1.150.0040.00418.67
8.1.140.0000.00719.48
8.1.130.0070.00017.73
8.1.120.0040.00417.43
8.1.110.0040.00417.46
8.1.100.0000.00717.45
8.1.90.0000.00817.39
8.1.80.0000.00817.30
8.1.70.0030.00317.40
8.1.60.0030.00517.53
8.1.50.0030.00617.46
8.1.40.0030.00617.33
8.1.30.0060.00317.48
8.1.20.0030.00517.63
8.1.10.0080.00017.48
8.1.00.0000.00917.31
8.0.300.0070.00018.77
8.0.290.0000.00916.75
8.0.280.0030.00318.36
8.0.270.0030.00317.10
8.0.260.0030.00617.11
8.0.250.0030.00316.90
8.0.240.0030.00316.86
8.0.230.0030.00516.86
8.0.220.0000.00716.83
8.0.210.0040.00316.73
8.0.200.0000.00616.88
8.0.190.0040.00416.79
8.0.180.0040.00416.84
8.0.170.0120.00016.90
8.0.160.0070.00016.71
8.0.150.0000.00716.82
8.0.140.0020.00516.76
8.0.130.0030.00313.25
8.0.120.0040.00416.89
8.0.110.0080.00016.86
8.0.100.0000.00716.88
8.0.90.0000.00716.82
8.0.80.0100.00716.89
8.0.70.0000.00716.89
8.0.60.0040.00416.86
8.0.50.0000.00716.89
8.0.30.0130.00617.05
8.0.20.0100.01417.40
8.0.10.0000.00716.82
8.0.00.0150.00616.71
7.4.330.0060.00016.74
7.4.320.0000.00616.54
7.4.300.0030.00316.54
7.4.290.0000.00716.48
7.4.280.0040.00416.38
7.4.270.0000.00716.38
7.4.260.0000.01116.54
7.4.250.0040.00416.41
7.4.240.0030.00316.55
7.4.230.0070.00016.48
7.4.220.0070.01116.53
7.4.210.0090.00616.53
7.4.200.0000.00716.43
7.4.160.0120.00916.33
7.4.150.0090.01217.40
7.4.140.0160.00517.86
7.4.130.0090.00816.44
7.4.120.0100.00716.47
7.4.110.0120.00616.45
7.4.100.0120.00616.33
7.4.90.0140.00316.34
7.4.80.0070.01019.39
7.4.70.0060.01216.32
7.4.60.0160.00616.39
7.4.50.0040.01416.46
7.4.40.0080.01216.21
7.4.30.0120.00416.53
7.4.00.0030.01214.83
7.3.330.0030.00313.07
7.3.320.0000.00512.95
7.3.310.0040.00416.23
7.3.300.0000.00616.05
7.3.290.0020.01416.17
7.3.280.0100.00516.15
7.3.270.0000.01717.40
7.3.260.0070.01016.18
7.3.250.0070.01316.21
7.3.240.0100.01016.25
7.3.230.0100.00716.39
7.3.210.0100.00716.33
7.3.200.0060.01216.12
7.3.190.0100.01016.38
7.3.180.0060.01316.18
7.3.170.0100.01016.15
7.3.160.0060.00916.43
7.2.330.0120.00616.30
7.2.320.0130.00316.47
7.2.310.0060.01616.56
7.2.300.0070.01016.16
7.2.290.0000.01616.25
7.2.60.0070.01016.66
7.2.00.0000.01219.02
7.1.200.0070.00715.51
7.1.100.0030.01017.73
7.1.70.0000.01016.95
7.1.60.0030.00717.17
7.1.40.0080.02034.23
7.1.30.0180.01234.16
7.1.20.0200.01334.29
7.1.10.0070.00816.24
7.1.00.0040.02718.30
7.0.200.0040.00416.41
7.0.180.0050.00816.05
7.0.170.0080.00515.92
7.0.160.0070.00815.96
7.0.150.0030.01015.92
7.0.140.0100.00715.91
7.0.130.0070.00816.26
7.0.120.0070.00716.25
7.0.110.0190.02317.42
7.0.100.0230.02817.46
7.0.90.0120.03017.49
7.0.80.0110.03017.50
7.0.70.0160.03017.50
7.0.60.0130.02717.18
7.0.50.0200.02417.50
7.0.40.0200.02017.64
7.0.30.0160.02717.61
7.0.20.0140.02717.55
7.0.10.0120.02617.54
7.0.00.0090.02817.58
5.6.300.0180.05820.67
5.6.290.0150.06320.59
5.6.280.0130.07320.71
5.6.270.0080.07020.81
5.6.260.0090.05820.83
5.6.250.0170.06120.84
5.6.240.0130.06120.82
5.6.230.0170.06320.84
5.6.220.0080.06420.69
5.6.210.0160.05220.71
5.6.200.0090.06420.89
5.6.190.0080.06020.83
5.6.180.0060.06720.72
5.6.170.0090.05720.82
5.6.160.0140.05620.80
5.6.150.0130.05820.84
5.6.140.0170.06120.82
5.6.130.0090.06620.81
5.6.120.0100.06020.66
5.6.110.0130.06020.79
5.6.100.0160.06320.73
5.6.90.0110.05920.79
5.6.80.0130.06020.15
5.6.70.0100.05320.11
5.6.60.0110.05720.22
5.6.50.0090.05320.17
5.6.40.0140.04820.09
5.6.30.0110.06020.25
5.6.20.0170.06020.23
5.6.10.0120.05820.16
5.6.00.0140.05920.19
5.5.380.0090.06417.48
5.5.370.0080.06617.39
5.5.360.0070.06217.38
5.5.350.0130.05017.46
5.5.340.0090.05317.94
5.5.330.0100.05817.83
5.5.320.0080.06317.91
5.5.310.0090.05617.85
5.5.300.0100.05818.03
5.5.290.0170.06017.75
5.5.280.0080.06417.93
5.5.270.0110.06617.90
5.5.260.0110.06217.80
5.5.250.0070.06417.80
5.5.240.0090.05117.24
5.5.230.0080.05717.27
5.5.220.0080.05317.38
5.5.210.0100.05017.19
5.5.200.0100.05117.24
5.5.190.0110.05717.17
5.5.180.0110.05717.30
5.5.160.0140.05417.29
5.5.150.0110.05017.31
5.5.140.0110.05117.30
5.5.130.0110.05717.22
5.5.120.0100.05817.20
5.5.110.0110.06117.08
5.5.100.0090.05617.16
5.5.90.0080.05617.08
5.5.80.0090.05217.26
5.5.70.0110.05917.13
5.5.60.0100.05817.07
5.5.50.0090.05717.12
5.5.40.0040.05616.98
5.5.30.0040.06217.09
5.5.20.0090.05017.13
5.5.10.0080.05217.28
5.5.00.0160.06017.05
5.4.450.0090.05819.17
5.4.440.0100.05819.22
5.4.430.0080.05819.20
5.4.420.0090.05719.30
5.4.410.0110.05819.12
5.4.400.0110.05218.91
5.4.390.0080.05618.95
5.4.380.0140.04618.89
5.4.370.0070.05318.93
5.4.360.0070.05818.99
5.4.350.0130.05918.95
5.4.340.0100.05218.87
5.4.320.0120.05218.92
5.4.310.0090.05418.84
5.4.300.0090.05618.90
5.4.290.0170.05918.85
5.4.280.0110.06219.00
5.4.270.0120.05218.84
5.4.260.0110.05318.83
5.4.250.0080.05018.95
5.4.240.0190.04618.89
5.4.230.0110.05718.86
5.4.220.0120.05619.01
5.4.210.0110.05918.83
5.4.200.0110.05418.97
5.4.190.0100.05419.00
5.4.180.0100.05618.90
5.4.170.0030.06118.88
5.4.160.0040.06018.95
5.4.150.0130.05818.88
5.4.140.0110.05816.42
5.4.130.0130.04916.42
5.4.120.0190.04916.32
5.4.110.0130.05216.45
5.4.100.0170.05116.40
5.4.90.0100.05016.41
5.4.80.0130.05716.32
5.4.70.0160.04916.38
5.4.60.0070.05316.40
5.4.50.0110.05316.28
5.4.40.0110.04916.36
5.4.30.0160.04416.34
5.4.20.0140.05916.28
5.4.10.0190.05616.32
5.4.00.0180.05115.88
5.3.290.0060.05314.65
5.3.280.0090.05714.44
5.3.270.0130.05014.62
5.3.260.0140.05114.63
5.3.250.0140.05614.57
5.3.240.0120.06114.58
5.3.230.0100.05014.50
5.3.220.0080.05414.45
5.3.210.0120.05814.43
5.3.200.0100.05114.50
5.3.190.0160.05214.50
5.3.180.0120.04914.44
5.3.170.0140.05814.58
5.3.160.0090.04914.44
5.3.150.0080.05814.54
5.3.140.0140.04914.38
5.3.130.0100.05914.54
5.3.120.0100.05914.49
5.3.110.0090.06114.46
5.3.100.0130.05713.96
5.3.90.0110.05413.89
5.3.80.0080.05213.94
5.3.70.0120.04913.94
5.3.60.0110.05614.02
5.3.50.0090.04913.91
5.3.40.0120.04813.84
5.3.30.0110.04813.89
5.3.20.0090.05413.67
5.3.10.0110.05313.56
5.3.00.0080.06713.54
5.2.170.0040.04311.08
5.2.160.0040.04311.12
5.2.150.0070.04611.08
5.2.140.0100.04011.17
5.2.130.0070.04611.07
5.2.120.0010.04811.10
5.2.110.0080.04311.13
5.2.100.0120.04311.02
5.2.90.0090.03811.17
5.2.80.0070.04411.07
5.2.70.0090.04611.04
5.2.60.0080.04111.03
5.2.50.0060.04710.99
5.2.40.0100.03610.89
5.2.30.0060.04110.88
5.2.20.0040.03910.82
5.2.10.0060.04110.90
5.2.00.0100.04310.71
5.1.60.0040.0429.86
5.1.50.0060.0339.96
5.1.40.0120.0309.96
5.1.30.0070.03910.46
5.1.20.0070.03810.41
5.1.10.0040.03910.16
5.1.00.0060.03910.04
5.0.50.0040.0348.50
5.0.40.0030.0328.36
5.0.30.0060.0438.18
5.0.20.0080.0238.25
5.0.10.0020.0308.19
5.0.00.0040.0438.10
4.4.90.0020.0246.46
4.4.80.0020.0216.46
4.4.70.0020.0226.46
4.4.60.0010.0246.46
4.4.50.0060.0216.46
4.4.40.0030.0346.46
4.4.30.0010.0226.46
4.4.20.0010.0236.47
4.4.10.0040.0246.47
4.4.00.0010.0376.47
4.3.110.0060.0206.47
4.3.100.0020.0216.47
4.3.90.0040.0206.47
4.3.80.0020.0366.47
4.3.70.0060.0186.47
4.3.60.0030.0226.47
4.3.50.0020.0276.47
4.3.40.0040.0386.47
4.3.30.0070.0196.47
4.3.20.0030.0276.47
4.3.10.0020.0236.47
4.3.00.0000.0266.47

preferences:
68.08 ms | 401 KiB | 5 Q