3v4l.org

run code in 300+ PHP versions simultaneously
<?php $css1 = ''; $time = microtime(true); for($i = 0; $i < 100000; $i++) { $css1 .= sprintf('foo %d', $i); } $time = microtime(true) - $time; echo number_format($time, 3) . 's'; $css2 = ''; $time = microtime(true); for($i = 0; $i < 100000; $i++) { $css2[] = sprintf('foo %d', $i); } $time = microtime(true) - $time; $css3 = implode('', $css2); echo number_format($time, 3) . 's';

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.00.0070.01719.38
7.1.70.0100.04517.18
7.1.60.0090.03519.12
7.1.50.0100.03816.94
7.1.00.0000.09322.46
7.0.200.0000.03254.82
7.0.140.0070.10760.08
7.0.60.0230.11756.07
7.0.50.0170.10754.00
7.0.40.0070.06723.72
7.0.30.0500.08723.64
7.0.20.0330.11323.56
7.0.10.0230.11023.77
7.0.00.0000.07023.47
5.6.280.0200.16361.80
5.6.210.0330.12761.46
5.6.200.0200.12758.82
5.6.190.0170.09361.02
5.6.180.0570.12761.13
5.6.170.0530.13361.23
5.6.160.0100.14361.05
5.6.150.0200.14758.84
5.6.140.0170.09758.81
5.6.130.0300.14758.86
5.6.120.0170.13361.86
5.6.110.0230.13761.72
5.6.100.0270.13761.78
5.6.90.0230.10761.86
5.6.80.0130.16361.14
5.5.350.4300.11061.14
5.5.340.0200.15758.64
5.5.330.0100.14061.00
5.5.320.0500.10060.76
5.5.310.0530.12760.99
5.5.300.0100.14358.57
5.5.290.0170.10058.67
5.5.280.0230.12761.50
5.5.270.0270.12061.38
5.5.260.0200.16061.59
5.5.250.0330.10361.35
5.5.240.0030.12361.00
5.4.450.0430.11060.09
5.4.440.0870.13759.77
5.4.430.0470.13360.02
5.4.420.0870.13360.07
5.4.410.0670.12360.17
5.4.400.0430.15759.71
5.4.390.0330.09759.54
5.4.380.0700.22059.46
5.4.370.0630.17059.45
5.4.360.0970.22759.29
5.4.350.0900.16759.41
5.4.340.0630.16359.41
5.4.320.0120.11553.20
5.4.310.0210.10353.19
5.4.300.0180.10553.20
5.4.290.0100.11053.19
5.4.280.0220.10853.09
5.4.270.0220.09853.09
5.4.260.0160.10753.09
5.4.250.0190.10653.09
5.4.240.0340.12253.09
5.4.230.0170.12253.08
5.4.220.0180.12453.08
5.4.210.0200.11553.09
5.4.200.0120.11253.08
5.4.190.0120.10953.08
5.4.180.0190.10253.08
5.4.170.0270.09353.09
5.4.160.0210.10653.09
5.4.150.0140.11153.09
5.4.140.0180.11852.77
5.4.130.0180.10652.76
5.4.120.0180.10752.71
5.4.110.0140.10652.71
5.4.100.0150.11852.71
5.4.90.0220.10452.71
5.4.80.0110.11652.71
5.4.70.0270.09752.70
5.4.60.0210.10952.71
5.4.50.0200.10352.71
5.4.40.0150.10852.69
5.4.30.0190.11752.69
5.4.20.0230.10552.69
5.4.10.0210.10252.69
5.4.00.0190.10452.18
5.3.290.0220.10952.95
5.3.280.0210.11252.88
5.3.270.0130.12752.89
5.3.260.0140.11752.89
5.3.250.0240.11552.89
5.3.240.0230.10352.89
5.3.230.0230.10952.88
5.3.220.0240.10552.85
5.3.210.0210.11652.85
5.3.200.0200.11852.84
5.3.190.0200.11452.85
5.3.180.0160.11652.84
5.3.170.0230.11152.84
5.3.160.0190.11752.84
5.3.150.0180.11652.85
5.3.140.0190.12052.84
5.3.130.0200.11352.83
5.3.120.0180.12652.83
5.3.110.0160.11852.83
5.3.100.0180.12152.32
5.3.90.0150.12052.30
5.3.80.0150.13252.29
5.3.70.0170.12852.29
5.3.60.0160.11752.27
5.3.50.0220.12452.22
5.3.40.0200.11052.21
5.3.30.0160.10952.18
5.3.20.0280.15051.96
5.3.10.0230.12151.92
5.3.00.0270.13451.90
5.2.170.0260.11948.71
5.2.160.0300.16048.71
5.2.150.0260.12348.71
5.2.140.0270.14948.71
5.2.130.0150.13848.66
5.2.120.0240.10548.67
5.2.110.0170.12948.66
5.2.100.0160.12348.66
5.2.90.0290.16248.66
5.2.80.0310.18148.66
5.2.70.0330.19648.65
5.2.60.0160.11848.61
5.2.50.0200.12548.58
5.2.40.0190.12548.56
5.2.30.0260.13348.53
5.2.20.0210.14348.53
5.2.10.0200.10848.61
5.2.00.0170.10748.47
5.1.60.0190.12965.29
5.1.50.0210.11965.29
5.1.40.0210.12065.27
5.1.30.0240.12265.62
5.1.20.0300.13065.63
5.1.10.0230.18965.27
5.1.00.0180.13565.27
5.0.50.0180.18463.75
5.0.40.0210.19963.82
5.0.30.0200.18263.43
5.0.20.0370.26063.49
5.0.10.0280.27963.46
5.0.00.0240.23363.46
4.4.90.0160.17051.04
4.4.80.0160.16751.02
4.4.70.0160.17951.01
4.4.60.0120.18051.02
4.4.50.0220.16151.03
4.4.40.0230.19551.03
4.4.30.0200.17751.02
4.4.20.0170.16551.08
4.4.10.0180.16951.09
4.4.00.0220.19951.05
4.3.110.0200.18450.86
4.3.100.0160.17850.85
4.3.90.0180.18750.89
4.3.80.0160.18950.89
4.3.70.0190.17650.88
4.3.60.0190.16451.01
4.3.50.0180.17151.00
4.3.40.0170.16250.93
4.3.30.0160.15549.54
4.3.20.0220.18949.52
4.3.10.0160.15938.97
4.3.00.0070.17040.08

preferences:
27.18 ms | 401 KiB | 5 Q