3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(decbin(ord(gzcompress("foo"))), "foo"); var_dump(decbin(ord(gzcompress("fdoo"))), "foo"); var_dump(decbin(ord(gzcompress("fsoo"))), "foo");

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.0070.01416.63
8.3.50.0080.01022.11
8.3.40.0090.00618.97
8.3.30.0070.00719.17
8.3.20.0000.00720.54
8.3.10.0000.00823.63
8.3.00.0030.00619.13
8.2.180.0160.00018.41
8.2.170.0150.00022.96
8.2.160.0070.00720.49
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00422.24
8.2.110.0000.01022.16
8.2.100.0100.00317.88
8.2.90.0080.00018.03
8.2.80.0040.00419.46
8.2.70.0050.00318.03
8.2.60.0000.00818.05
8.2.50.0000.00918.10
8.2.40.0000.00720.75
8.2.30.0040.00418.05
8.2.20.0000.00817.70
8.2.10.0040.00718.15
8.2.00.0040.00717.67
8.1.280.0100.00325.92
8.1.270.0030.00622.32
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00523.96
8.1.230.0070.00421.16
8.1.220.0050.00317.74
8.1.210.0040.00418.85
8.1.200.0050.00317.35
8.1.190.0040.00417.25
8.1.180.0000.00818.10
8.1.170.0030.00618.77
8.1.160.0000.00822.30
8.1.150.0000.00818.74
8.1.140.0040.00417.55
8.1.130.0040.00417.95
8.1.120.0070.00017.55
8.1.110.0060.00317.63
8.1.100.0030.00517.43
8.1.90.0000.00717.53
8.1.80.0050.00317.48
8.1.70.0030.00317.55
8.1.60.0030.00617.63
8.1.50.0040.00417.51
8.1.40.0040.00417.48
8.1.30.0040.00417.64
8.1.20.0030.00617.73
8.1.10.0040.00417.56
8.1.00.0000.00717.55
8.0.300.0070.00020.35
8.0.290.0030.00616.63
8.0.280.0000.00718.51
8.0.270.0030.00317.31
8.0.260.0000.00717.22
8.0.250.0000.00717.05
8.0.240.0000.00617.00
8.0.230.0000.00716.93
8.0.220.0030.00316.98
8.0.210.0000.00716.84
8.0.200.0030.00317.05
8.0.190.0040.00417.05
8.0.180.0070.00016.99
8.0.170.0040.00417.02
8.0.160.0060.00316.92
8.0.150.0040.00316.86
8.0.140.0000.00716.79
8.0.130.0030.00313.47
8.0.120.0030.00516.95
8.0.110.0040.00416.91
8.0.100.0080.00016.95
8.0.90.0000.00816.81
8.0.80.0150.00016.87
8.0.70.0040.00416.78
8.0.60.0040.00416.80
8.0.50.0090.00016.94
8.0.30.0060.01217.08
8.0.20.0110.00717.40
8.0.10.0050.00316.93
8.0.00.0130.00416.88
7.4.330.0000.00515.02
7.4.320.0000.00616.66
7.4.300.0030.00316.52
7.4.290.0040.00416.66
7.4.280.0030.00316.64
7.4.270.0040.00316.70
7.4.260.0080.00016.41
7.4.250.0030.00616.64
7.4.240.0040.00316.67
7.4.230.0070.00016.54
7.4.220.0090.00916.61
7.4.210.0110.00616.53
7.4.200.0000.00816.63
7.4.190.0040.00416.65
7.4.160.0030.01616.41
7.4.150.0190.00617.40
7.4.140.0090.01017.86
7.4.130.0090.01116.51
7.4.120.0090.00916.56
7.4.110.0060.01516.51
7.4.100.0090.01216.52
7.4.90.0100.00716.64
7.4.80.0150.00319.39
7.4.70.0160.02616.52
7.4.60.0120.00616.63
7.4.50.0060.00316.48
7.4.40.0120.00322.77
7.4.30.0110.00516.42
7.4.00.0130.00314.81
7.3.330.0000.00513.16
7.3.320.0020.00213.19
7.3.310.0050.00316.18
7.3.300.0030.00316.38
7.3.290.0060.01216.36
7.3.280.0050.01316.36
7.3.270.0070.01417.40
7.3.260.0120.00616.26
7.3.250.0080.01516.33
7.3.240.0120.00616.43
7.3.230.0130.00416.40
7.3.210.0130.00416.53
7.3.200.0060.01619.39
7.3.190.0070.01316.28
7.3.180.0060.01016.56
7.3.170.0060.00916.61
7.3.160.0100.00716.39
7.3.120.0030.01014.96
7.3.10.0040.00816.37
7.3.00.0110.00616.31
7.2.330.0120.00616.43
7.2.320.0160.00816.49
7.2.310.0090.01216.72
7.2.300.0100.01316.48
7.2.290.0070.01016.60
7.2.130.0060.00916.43
7.2.120.0080.01016.54
7.2.110.0090.00616.38
7.2.100.0100.01016.69
7.2.90.0160.00316.50
7.2.80.0030.01016.36
7.2.70.0080.00416.80
7.2.60.0120.00316.66
7.2.50.0100.00616.59
7.2.40.0090.00916.14
7.2.30.0100.00316.58
7.2.20.0090.01016.59
7.2.10.0000.01016.50
7.2.00.0030.00817.68
7.1.250.0050.01015.70
7.1.100.0060.00317.85
7.1.70.0030.00916.90
7.1.60.0100.01319.46
7.1.50.0030.01016.87
7.1.00.0070.07322.29
7.0.200.0030.00316.55
7.0.140.0100.06721.92
7.0.60.0070.08321.74
7.0.50.0000.06018.04
7.0.40.0070.08020.13
7.0.30.0230.07720.20
7.0.20.0300.04320.21
7.0.10.0030.06020.11
7.0.00.0070.04020.35
5.6.280.0030.07021.24
5.6.210.0100.08020.82
5.6.200.0030.09318.36
5.6.190.0100.07020.83
5.6.180.0230.03720.76
5.6.170.0370.06020.62
5.6.160.0130.06020.68
5.6.150.0070.05718.27
5.6.140.0070.05318.24
5.6.130.0030.05018.34
5.6.120.0070.05721.18
5.6.110.0000.04321.18
5.6.100.0030.08721.27
5.6.90.0100.06021.05
5.6.80.0100.04720.67
5.5.350.0200.08320.61
5.5.340.0030.06718.04
5.5.330.0030.04320.59
5.5.320.0170.04020.44
5.5.310.0330.06020.46
5.5.300.0130.07318.18
5.5.290.0030.04018.13
5.5.280.0070.08721.12
5.5.270.0200.06720.82
5.5.260.0170.07321.04
5.5.250.0130.08020.82
5.5.240.0330.06720.42
5.4.450.0130.05719.46
5.4.440.0770.06019.39
5.4.430.0500.05719.63
5.4.420.0970.04319.63
5.4.410.0970.04719.62
5.4.400.0830.05019.08
5.4.390.0870.05719.10
5.4.380.0200.07018.84
5.4.370.0230.05718.74
5.4.360.0370.06018.72
5.4.350.0370.05318.84
5.4.340.0470.06018.88
5.4.320.0070.03412.63
5.4.310.0080.03612.63
5.4.300.0050.04312.63
5.4.290.0090.04012.63
5.4.280.0040.05512.50
5.4.270.0160.05212.50
5.4.260.0110.03712.50
5.4.250.0060.04112.50
5.4.240.0070.03712.50
5.4.230.0080.05012.49
5.4.220.0140.05512.49
5.4.210.0130.05112.49
5.4.200.0080.05412.49
5.4.190.0100.03912.49
5.4.180.0110.03812.49
5.4.170.0080.04212.50
5.4.160.0050.04112.50
5.4.150.0050.04012.49
5.4.140.0110.03812.17
5.4.130.0090.04212.16
5.4.120.0100.04712.12
5.4.110.0080.04112.11
5.4.100.0080.05212.12
5.4.90.0080.05312.12
5.4.80.0160.06612.11
5.4.70.0120.06512.11
5.4.60.0100.05712.11
5.4.50.0200.08712.11
5.4.40.0140.06912.10
5.4.30.0120.04712.10
5.4.20.0190.05512.10
5.4.10.0150.06112.10
5.4.00.0100.07911.58
5.3.290.0090.04312.82
5.3.280.0110.03712.73
5.3.270.0110.05712.74
5.3.260.0140.08112.74
5.3.250.0180.06912.75
5.3.240.0060.05812.74
5.3.230.0150.09612.73
5.3.220.0200.09612.70
5.3.210.0320.10612.71
5.3.200.0110.05812.70
5.3.190.0100.05812.71
5.3.180.0150.04712.70
5.3.170.0100.04912.70
5.3.160.0130.05612.70
5.3.150.0110.04912.70
5.3.140.0090.05312.69
5.3.130.0050.04712.68
5.3.120.0070.05012.69
5.3.110.0130.06312.68
5.3.100.0150.04912.17
5.3.90.0140.04412.16
5.3.80.0100.03912.14
5.3.70.0190.06212.14
5.3.60.0120.05312.13
5.3.50.0090.03812.07
5.3.40.0090.05612.07
5.3.30.0150.04512.04
5.3.20.0090.05111.82
5.3.10.0220.08211.78
5.3.00.0130.05811.77
5.2.170.0090.0389.27
5.2.160.0050.0389.27
5.2.150.0130.0419.27
5.2.140.0060.0479.27
5.2.130.0110.0379.22
5.2.120.0080.0379.23
5.2.110.0070.0389.23
5.2.100.0060.0419.23
5.2.90.0050.0349.22
5.2.80.0060.0459.23
5.2.70.0090.0469.22
5.2.60.0060.0369.18
5.2.50.0150.0499.14
5.2.40.0140.0629.12
5.2.30.0080.0459.10
5.2.20.0070.0559.09
5.2.10.0180.0609.02
5.2.00.0080.0558.88
5.1.60.0110.0398.11
5.1.50.0050.0448.11
5.1.40.0060.0378.09
5.1.30.0090.0278.43
5.1.20.0050.0408.45
5.1.10.0040.0318.18
5.1.00.0090.0468.18
5.0.50.0050.0346.65
5.0.40.0090.0336.59
5.0.30.0060.0596.39
5.0.20.0060.0296.30
5.0.10.0090.0326.29
5.0.00.0080.0466.27
4.4.90.0070.0304.78
4.4.80.0030.0294.76
4.4.70.0030.0274.75
4.4.60.0130.0224.76
4.4.50.0060.0284.77
4.4.40.0070.0484.71
4.4.30.0050.0244.76
4.4.20.0040.0254.84
4.4.10.0050.0204.85
4.4.00.0050.0354.76
4.3.110.0050.0214.67
4.3.100.0060.0234.66
4.3.90.0090.0254.63
4.3.80.0040.0244.60
4.3.70.0020.0174.63
4.3.60.0020.0194.63
4.3.50.0030.0244.63
4.3.40.0050.0314.55
4.3.30.0030.0203.36
4.3.20.0030.0253.34
4.3.10.0030.0223.30
4.3.00.0000.03713.47

preferences:
39.55 ms | 401 KiB | 5 Q