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]; echo base64_decode(gzuncompress(pack('c*', ...$data)));

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.4.20.0160.00317.43
8.4.10.0030.01619.52
8.3.150.0090.00618.78
8.3.140.0040.00420.87
8.3.130.0050.00318.48
8.3.120.0030.00619.05
8.3.110.0000.00918.23
8.3.100.0120.00016.63
8.3.90.0080.00026.77
8.3.80.0040.00416.75
8.3.70.0150.00016.61
8.3.60.0160.00318.55
8.3.50.0180.00317.26
8.3.40.0100.01018.80
8.3.30.0190.00018.70
8.3.20.0060.00320.47
8.3.10.0080.00020.79
8.3.00.0040.00419.06
8.2.260.0100.00717.17
8.2.250.0100.01016.48
8.2.240.0090.00618.97
8.2.230.0040.00420.94
8.2.220.0080.00024.06
8.2.210.0040.00426.77
8.2.200.0040.00418.10
8.2.190.0130.00716.58
8.2.180.0090.00618.54
8.2.170.0060.01022.96
8.2.160.0130.00319.22
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0000.00819.95
8.2.110.0060.00319.45
8.2.100.0080.00417.89
8.2.90.0040.00419.13
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0040.00418.03
8.2.50.0030.00518.10
8.2.40.0070.00420.58
8.2.30.0040.00419.27
8.2.20.0070.00017.96
8.2.10.0050.00318.08
8.2.00.0030.00517.97
8.1.310.0120.00616.72
8.1.300.0030.00718.02
8.1.290.0120.00030.84
8.1.280.0070.00725.92
8.1.270.0040.00422.21
8.1.260.0040.00426.35
8.1.250.0000.01428.09
8.1.240.0050.00521.00
8.1.230.0040.00717.76
8.1.220.0000.00817.78
8.1.210.0030.00618.77
8.1.200.0030.00617.36
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0040.00418.53
8.1.160.0030.00518.85
8.1.150.0040.00418.75
8.1.140.0040.00419.47
8.1.130.0000.00818.83
8.1.120.0030.00317.35
8.1.110.0000.00717.41
8.1.100.0000.00717.39
8.1.90.0080.00017.32
8.1.80.0000.00717.34
8.1.70.0030.00617.36
8.1.60.0000.00817.43
8.1.50.0090.00317.38
8.1.40.0050.00317.48
8.1.30.0040.00417.59
8.1.20.0060.00317.57
8.1.10.0040.00417.55
8.1.00.0070.00017.52
8.0.300.0050.00218.77
8.0.290.0060.00316.75
8.0.280.0040.00418.53
8.0.270.0000.00717.20
8.0.260.0000.00820.62
8.0.250.0070.00017.00
8.0.240.0040.00417.02
8.0.230.0000.00716.91
8.0.220.0030.00616.84
8.0.210.0030.00316.84
8.0.200.0030.00316.95
8.0.190.0050.00316.89
8.0.180.0000.00816.83
8.0.170.0000.00716.80
8.0.160.0000.00716.77
8.0.150.0040.00416.83
8.0.140.0040.00416.80
8.0.130.0000.00613.34
8.0.120.0040.00416.85
8.0.110.0050.00316.73
8.0.100.0000.00716.72
8.0.90.0040.00416.81
8.0.80.0080.00816.91
8.0.70.0000.00716.73
8.0.60.0000.00716.68
8.0.50.0070.00016.96
8.0.30.0140.00416.96
8.0.20.0100.00817.40
8.0.10.0000.00716.79
8.0.00.0090.00916.45
7.4.330.0020.00215.55
7.4.320.0030.00316.57
7.4.300.0000.00616.55
7.4.290.0000.00716.57
7.4.280.0050.00316.37
7.4.270.0080.00016.47
7.4.260.0040.00416.50
7.4.250.0040.00416.57
7.4.240.0030.00316.57
7.4.230.0040.00416.30
7.4.220.0110.00716.41
7.4.210.0130.00316.50
7.4.200.0020.00516.68
7.4.160.0090.00916.52
7.4.150.0090.01017.40
7.4.140.0090.00917.86
7.4.130.0060.01216.54
7.4.120.0100.01016.46
7.4.110.0140.00316.43
7.4.100.0140.01216.57
7.4.90.0060.01216.43
7.4.80.0130.00719.39
7.4.70.0100.00616.47
7.4.60.0110.00716.41
7.4.50.0020.01416.29
7.4.40.0090.00816.41
7.4.30.0040.01216.52
7.4.00.0060.01115.02
7.3.330.0000.00613.10
7.3.320.0000.00613.00
7.3.310.0000.00716.21
7.3.300.0000.00716.21
7.3.290.0070.00916.14
7.3.280.0080.00816.17
7.3.270.0100.00717.40
7.3.260.0070.01216.31
7.3.250.0100.01016.18
7.3.240.0140.00516.26
7.3.230.0200.00416.27
7.3.210.0100.00616.51
7.3.200.0110.01116.50
7.3.190.0120.00616.19
7.3.180.0060.00916.29
7.3.170.0060.01016.09
7.3.160.0090.00916.49
7.3.120.0080.00814.68
7.3.110.0040.01314.91
7.3.100.0070.00614.67
7.3.90.0050.00514.59
7.3.80.0030.01214.72
7.3.70.0100.00314.77
7.3.60.0070.00714.62
7.3.50.0050.00914.61
7.3.40.0060.00614.61
7.3.30.0060.00814.60
7.3.20.0090.00316.56
7.3.10.0020.01016.46
7.3.00.0030.00716.42
7.2.330.0110.00616.40
7.2.320.0140.00416.75
7.2.310.0070.01516.64
7.2.300.0070.00716.64
7.2.290.0090.00916.36
7.2.250.0060.01215.09
7.2.240.0140.00514.88
7.2.230.0060.00914.69
7.2.220.0070.00714.79
7.2.210.0050.01214.97
7.2.200.0080.00714.91
7.2.190.0030.01114.77
7.2.180.0070.00514.87
7.2.170.0050.01114.85
7.2.60.0000.01617.04
7.1.330.0040.01015.75
7.1.320.0050.00815.59
7.1.310.0080.00515.79
7.1.300.0070.00515.73
7.1.290.0030.00615.59
7.1.280.0080.00515.50
7.1.270.0100.00215.47
7.1.260.0050.00815.60
7.1.200.0000.01515.40
7.1.70.0100.00516.77
7.1.60.0200.02034.93
7.1.50.0210.01134.73
7.1.40.0180.01434.19
7.1.30.0320.01234.38
7.1.20.0280.01534.64
7.1.10.0120.01116.72
7.1.00.0060.01016.68
7.0.200.0100.00716.75
7.0.190.0040.01216.52
7.0.180.0130.00316.35
7.0.170.0060.01515.91
7.0.160.0100.01016.09
7.0.150.0070.01316.18
7.0.140.0060.01015.96
7.0.130.0070.01416.50
7.0.120.0030.01316.40
7.0.110.0070.01316.12
7.0.100.0030.01616.32
7.0.90.0000.02016.21
7.0.80.0050.01816.30
7.0.70.0040.01516.10
7.0.60.0000.01815.91
7.0.50.0030.01516.43
7.0.40.0160.01316.46
7.0.30.0070.01316.50
7.0.20.0120.01016.12
7.0.10.0080.01116.38
7.0.00.0060.01316.25

preferences:
41.03 ms | 403 KiB | 5 Q