3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t1 = time();$x = ' ';while(time()-$t1<10){ $w = gzcompress($x.'a'); $x.= $w;}

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)
7.2.60.1490.72863.12
7.2.00.0100.68165.86
7.1.200.1030.63262.35
7.1.70.0230.61463.77
7.1.60.7480.75863.33
7.1.50.0170.73363.67
7.1.00.0130.69769.03
7.0.200.0930.90963.13
7.0.140.0100.67068.61
7.0.100.5000.73067.70
7.0.91.0800.74767.66
7.0.80.0630.77768.00
7.0.70.0530.64367.69
7.0.60.0530.70367.64
7.0.50.0300.80068.01
7.0.40.0700.67764.73
7.0.30.0530.76364.81
7.0.20.0270.69364.77
7.0.10.0370.78364.71
7.0.00.0470.78064.76
5.6.280.0130.70066.18
5.6.250.0230.82765.66
5.6.240.0330.81065.69
5.6.230.0330.61365.73
5.6.220.0170.62065.55
5.6.210.0270.81066.66
5.6.200.0230.78766.10
5.6.190.0370.74366.04
5.6.180.0370.78766.14
5.6.170.0400.78366.17
5.6.160.0370.78066.11
5.6.150.0300.71766.04
5.6.140.0270.66366.07
5.6.130.0270.79766.16
5.6.120.0970.66066.04
5.6.110.1330.63366.16
5.6.100.0400.77765.99
5.6.90.0270.77366.05
5.6.80.0230.82365.48
5.6.70.0370.88365.44
5.6.60.0330.89065.59
5.6.50.0270.65065.45
5.6.40.0370.77365.35
5.6.30.0370.82365.36
5.6.20.0130.77065.43
5.6.10.0270.74365.38
5.6.00.0200.70065.50
5.5.380.0370.76365.39
5.5.370.0270.68365.59
5.5.360.0300.77765.46
5.5.350.0930.66065.42
5.5.340.0370.78365.92
5.5.330.0430.80065.70
5.5.320.0800.71065.89
5.5.310.0400.80765.91
5.5.300.0330.78765.95
5.5.290.0300.80065.80
5.5.280.0400.80065.84
5.5.270.0400.79765.68
5.5.260.0200.68365.91
5.5.250.0200.82765.75
5.5.240.0170.67065.35
5.5.230.0430.79365.21
5.5.220.0370.82065.22
5.5.210.0370.79765.05
5.5.200.0270.85065.13
5.5.190.0330.78765.27
5.5.180.0300.69065.18
5.5.160.0300.79765.33
5.5.150.0170.62065.16
5.5.140.0200.68365.18
5.5.130.0200.76765.29
5.5.120.0270.65365.33
5.5.110.0330.80765.04
5.5.100.0270.81365.22
5.5.90.0230.82365.22
5.5.80.0300.78065.14
5.5.70.0430.77365.20
5.5.60.0270.65765.08
5.5.50.0300.79765.12
5.5.40.0930.63764.98
5.5.30.0300.77365.04
5.5.20.0270.79065.13
5.5.10.0300.66365.09
5.5.00.0200.64065.10
5.4.450.0400.76764.27
5.4.440.0170.79064.24
5.4.430.0200.79364.43
5.4.420.0230.76764.26
5.4.410.0270.75364.13
5.4.400.0400.76764.04
5.4.390.0400.77364.03
5.4.380.0400.65763.78
5.4.370.0270.74064.04
5.4.360.0400.80064.04
5.4.350.0230.62363.95
5.4.340.0270.73064.01
5.4.320.0430.73064.11
5.4.310.0130.73063.94
5.4.300.0200.66364.03
5.4.290.0300.65764.16
5.4.280.0230.66763.88
5.4.270.0170.81063.94
5.4.260.0470.79363.81
5.4.250.0270.66764.06
5.4.240.0370.77364.03
5.4.230.0370.79064.03
5.4.220.0330.79763.94
5.4.210.0270.65363.83
5.4.200.0230.81763.80
5.4.190.0330.80763.96
5.4.180.0300.74364.03
5.4.170.0400.83364.13
5.4.160.0200.67363.86
5.4.150.0430.85063.86
5.4.140.0330.80361.20
5.4.130.0330.71061.31
5.4.120.0270.64761.35
5.4.110.0370.71361.48
5.4.100.0230.79761.33
5.4.90.0270.66761.37
5.4.80.0430.78361.22
5.4.70.0300.62361.33
5.4.60.0430.77061.37
5.4.50.0130.66061.44
5.4.40.0330.77761.26
5.4.30.0330.80361.34
5.4.20.0670.65761.25
5.4.10.0200.82061.30
5.4.00.0170.65360.82

preferences:
30.69 ms | 400 KiB | 5 Q