3v4l.org

run code in 300+ PHP versions simultaneously
<?php $starttime = time(); $i = 0; $str = ""; while (true) { $str .= $i."\n"; $i++; //sleep(1); $runtime = time() - $starttime; if($runtime >= 5) break; } echo $str;

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.0270.37848.88
7.2.00.0630.45051.29
7.1.200.0730.43147.66
7.1.100.0320.16227.64
7.1.70.0230.46248.93
7.1.60.0200.38749.26
7.1.50.0200.38948.96
7.1.00.0200.55354.17
7.0.200.4550.38948.82
7.0.80.0200.36753.36
7.0.70.0270.37353.47
7.0.60.4430.55053.43
7.0.50.0230.47053.86
7.0.40.2370.36750.04
7.0.30.1430.47750.19
7.0.20.0830.50050.11
7.0.10.0630.40350.14
7.0.00.1070.46050.02
5.6.280.0272.27384.68
5.6.230.0201.38084.43
5.6.220.0131.43384.33
5.6.210.0231.28384.31
5.6.200.0271.38784.87
5.6.190.0231.53384.78
5.6.180.0301.41784.82
5.6.170.0231.46384.77
5.6.160.0331.48384.70
5.6.150.0271.24084.79
5.6.140.0401.46384.87
5.6.130.0201.43784.79
5.6.120.0301.52084.85
5.6.110.0231.22384.78
5.6.100.0371.40084.84
5.6.90.0131.23384.75
5.6.80.0231.34784.18
5.6.70.0231.39784.20
5.6.60.0271.42384.05
5.6.50.0201.41384.21
5.6.40.0301.46384.17
5.6.30.0201.40084.19
5.6.20.0301.45384.06
5.6.10.0071.24084.12
5.6.00.0101.31084.10
5.5.370.0171.32784.16
5.5.360.0271.45784.18
5.5.350.0271.46084.14
5.5.340.0501.46784.61
5.5.330.0301.44084.68
5.5.320.0331.67384.48
5.5.310.0271.45784.50
5.5.300.0631.31784.50
5.5.290.0201.49084.55
5.5.280.0171.46384.63
5.5.270.0431.45084.65
5.5.260.0331.31384.52
5.5.250.0231.35384.40
5.5.240.0301.37083.90
5.5.230.0201.45084.05
5.5.220.0271.46783.98
5.5.210.0201.42083.92
5.5.200.0371.48384.03
5.5.190.0331.43383.86
5.5.180.0101.24783.93
5.5.160.0231.45383.90
5.5.150.0171.48083.89
5.5.140.0271.42083.89
5.5.130.0131.27383.87
5.5.120.0101.30783.89
5.5.110.0301.27083.72
5.5.100.0301.32083.85
5.5.90.0001.26783.72
5.5.80.0171.43783.73
5.5.70.0371.29383.75
5.5.60.0171.40083.91
5.5.50.0071.45783.78
5.5.40.0231.21383.90
5.5.30.0371.42083.89
5.5.20.0101.46083.84
5.5.10.0171.21783.87
5.5.00.0301.36083.83
5.4.450.0431.44382.97
5.4.440.0171.49783.00
5.4.430.0301.51383.00
5.4.420.0131.29382.96
5.4.410.0101.40782.77
5.4.400.2101.36782.65
5.4.390.0171.45382.77
5.4.380.0171.53082.64
5.4.370.0201.46782.67
5.4.360.0331.43382.47
5.4.350.1001.23382.64
5.4.340.0071.23782.73
5.4.320.0171.44082.80
5.4.310.0201.25382.47
5.4.300.0201.48382.61
5.4.290.0371.41782.65
5.4.280.0431.43782.73
5.4.270.0101.49782.97
5.4.260.0271.22082.66
5.4.250.0231.33082.64
5.4.240.0401.43382.50
5.4.230.0371.44082.46
5.4.220.0201.29782.73
5.4.210.0271.33382.64
5.4.200.0201.43782.50
5.4.190.0301.42782.76
5.4.180.0231.41082.71
5.4.170.0331.44382.63
5.4.160.0131.23082.66
5.4.150.0271.42382.68
5.4.140.0301.28080.05
5.4.130.0231.46080.01
5.4.120.0231.43079.91
5.4.110.0171.43079.97
5.4.100.0201.28379.99
5.4.90.0131.38380.00
5.4.80.0301.40080.00
5.4.70.0031.30780.03
5.4.60.0331.36779.91
5.4.50.0071.30779.97
5.4.40.0231.46080.10
5.4.30.0201.41779.93
5.4.20.0301.38379.93
5.4.10.0231.42779.90
5.4.00.0171.26779.54

preferences:
45.74 ms | 401 KiB | 5 Q