3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Hello I am a very very very very long stringfdgfg dgd gdfg dgd gdg gf dgf dgd gdg dgd gdfgdfgd dgd g gdgdg dfgdfgg'; $compressed = gzcompress($str, -1); $uncompressed = gzuncompress($compressed); echo $str, "\n"; echo $uncompressed, "\n"; echo base64_encode($compressed), "\n"; echo bin2hex($compressed), "\n"; echo urlencode($compressed), "\n";

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.0090.00918.30
8.3.50.0170.00316.27
8.3.40.0070.01118.92
8.3.30.0040.01218.83
8.3.20.0080.00020.60
8.3.10.0090.00023.50
8.3.00.0050.00319.68
8.2.180.0110.01118.16
8.2.170.0150.00022.96
8.2.160.0090.00619.15
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00819.57
8.2.120.0080.00026.35
8.2.110.0030.00620.60
8.2.100.0040.00818.03
8.2.90.0030.00519.30
8.2.80.0040.00418.18
8.2.70.0040.00417.63
8.2.60.0050.00318.03
8.2.50.0030.00618.16
8.2.40.0040.00420.77
8.2.30.0040.00419.42
8.2.20.0040.00418.21
8.2.10.0040.00418.21
8.2.00.0040.00418.29
8.1.280.0110.00425.92
8.1.270.0000.00822.08
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0090.00022.80
8.1.230.0070.00419.16
8.1.220.0000.00817.80
8.1.210.0040.00418.77
8.1.200.0100.00017.35
8.1.190.0060.00317.36
8.1.180.0080.00018.10
8.1.170.0000.00818.61
8.1.160.0030.00519.14
8.1.150.0000.00818.77
8.1.140.0050.00219.73
8.1.130.0030.00318.99
8.1.120.0000.00817.54
8.1.110.0000.00817.52
8.1.100.0040.00417.57
8.1.90.0040.00417.49
8.1.80.0000.00717.48
8.1.70.0030.00517.61
8.1.60.0040.00417.59
8.1.50.0040.00417.69
8.1.40.0040.00417.60
8.1.30.0000.00817.65
8.1.20.0030.00517.76
8.1.10.0000.00817.67
8.1.00.0080.00017.53
8.0.300.0080.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00318.60
8.0.270.0000.00717.42
8.0.260.0000.00816.93
8.0.250.0030.00317.10
8.0.240.0030.00617.16
8.0.230.0030.00316.93
8.0.220.0070.00016.98
8.0.210.0040.00417.03
8.0.200.0030.00316.98
8.0.190.0000.00917.08
8.0.180.0050.00316.96
8.0.170.0040.00417.06
8.0.160.0030.00616.99
8.0.150.0030.00317.04
8.0.140.0000.00716.95
8.0.130.0030.00613.43
8.0.120.0000.00817.00
8.0.110.0040.00416.99
8.0.100.0040.00416.91
8.0.90.0040.00416.89
8.0.80.0130.01016.97
8.0.70.0040.00417.04
8.0.60.0000.00816.87
8.0.50.0000.00817.00
8.0.30.0090.01317.06
8.0.20.0140.00917.43
8.0.10.0000.00816.95
8.0.00.0070.01516.75
7.4.330.0030.00315.55
7.4.320.0000.00816.60
7.4.300.0030.00316.62
7.4.290.0030.00316.62
7.4.280.0040.00416.63
7.4.270.0000.00716.59
7.4.260.0100.00016.55
7.4.250.0030.00316.54
7.4.240.0040.00416.62
7.4.230.0050.00216.61
7.4.220.0120.00616.60
7.4.210.0090.01016.57
7.4.200.0080.00016.78
7.4.160.0080.00816.59
7.4.150.0120.00617.40
7.4.140.0100.00817.86
7.4.130.0070.01016.52
7.4.120.0120.00916.63
7.4.110.0030.01316.57
7.4.100.0160.00316.68
7.4.90.0040.01216.74
7.4.80.0110.00919.39
7.4.70.0030.01316.73
7.4.60.0110.00616.71
7.4.50.0040.00816.48
7.4.40.0030.01616.76
7.4.30.0100.00716.59
7.4.00.0120.00315.05
7.3.330.0000.00513.11
7.3.320.0030.00213.26
7.3.310.0040.00416.23
7.3.300.0030.00316.34
7.3.290.0070.00716.42
7.3.280.0080.00916.37
7.3.270.0100.00717.40
7.3.260.0100.01016.45
7.3.250.0120.00516.43
7.3.240.0120.01016.58
7.3.230.0060.01216.38
7.3.210.0070.01016.57
7.3.200.0100.00716.47
7.3.190.0110.00616.66
7.3.180.0140.00316.35
7.3.170.0100.01016.48
7.3.160.0100.00616.59
7.2.330.0090.01216.79
7.2.320.0120.00916.49
7.2.310.0110.00516.64
7.2.300.0130.00316.64
7.2.290.0160.00716.50
7.2.60.0030.00916.88
7.1.200.0100.00315.90
7.1.70.0050.01217.12
7.1.60.0190.01335.11
7.1.50.0290.00834.94
7.1.40.0240.01234.47
7.1.30.0230.01334.35
7.1.20.0190.02034.66
7.1.10.0030.01416.51
7.1.00.0120.00616.76
7.0.200.0050.01316.73
7.0.190.0020.01416.63
7.0.180.0090.00916.30
7.0.170.0070.01116.39
7.0.160.0070.01016.14
7.0.150.0060.01216.20
7.0.140.0050.01216.21
7.0.130.0120.00616.55
7.0.120.0130.00516.50
7.0.110.0060.01116.11
7.0.100.0010.01616.23
7.0.90.0050.01116.41
7.0.80.0070.01016.57
7.0.70.0060.01116.34
7.0.60.0090.00816.26
7.0.50.0060.01216.33
7.0.40.0060.01116.51
7.0.30.0100.00716.43
7.0.20.0030.01316.70
7.0.10.0030.01216.56
7.0.00.0030.01316.34

preferences:
46.09 ms | 401 KiB | 5 Q