3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = base64_encode(md5('')); $start = microtime(true); for ($i = 0; $i < 100; ++$i) { $result = []; do { $result[] = $value; $value = substr($value, 0, -1); } while ('' !== $value); } $end = microtime(true); echo $i/($end - $start), ' op/s', PHP_EOL; var_dump($result);

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.4.00.0330.07747.97
7.3.120.0370.10747.47
7.3.110.0300.08347.64
7.3.100.0440.07147.43
7.3.90.0290.08547.93
7.3.80.0340.06747.96
7.3.70.0340.09047.73
7.3.60.0260.07347.76
7.3.50.0270.08747.76
7.3.40.0260.06847.52
7.3.30.0270.07347.49
7.3.20.0160.05850.64
7.3.10.1640.08249.29
7.3.00.0770.06149.95
7.2.250.0270.08147.97
7.2.240.0590.08648.11
7.2.230.0300.07747.91
7.2.220.0230.09847.54
7.2.210.0230.11647.96
7.2.200.0330.08647.76
7.2.190.0360.06847.80
7.2.180.0460.05947.95
7.2.170.0230.08647.98
7.2.130.2270.06650.86
7.2.120.1570.07950.83
7.2.110.6710.07150.70
7.2.100.6200.08048.46
7.2.90.3240.07747.90
7.2.80.1370.07948.89
7.2.70.1470.06850.82
7.2.60.1800.08550.73
7.2.50.1400.09250.66
7.2.40.1590.07250.86
7.2.30.1580.08048.23
7.2.20.1800.07250.59
7.2.10.6990.09648.79
7.2.00.8210.07950.59
7.1.330.0070.13449.93
7.1.320.0130.12049.68
7.1.310.0130.12149.80
7.1.300.0100.11549.96
7.1.290.0100.13449.55
7.1.280.0130.12249.86
7.1.270.0070.15949.87
7.1.260.0070.13849.74
7.1.250.1270.12647.68
7.1.70.0100.09951.15
7.1.60.0130.06751.11
7.1.50.0230.05351.16
7.0.200.1390.05850.73
5.4.260.0470.21083.50
5.4.250.0430.23383.82
5.4.240.0400.21083.44
5.4.230.0470.14083.64
5.4.220.0230.19783.64
5.4.210.0430.21083.54
5.4.200.0330.15383.64
5.4.190.0370.21783.38
5.4.180.0300.16083.69
5.4.170.0330.16383.32
5.4.160.0400.21383.48
5.4.150.0330.15783.33
5.4.140.0370.17780.86
5.4.130.0430.14380.98
5.4.120.0400.14780.85
5.4.110.0500.20381.10
5.4.100.0330.21380.93
5.4.90.0100.22781.04
5.4.80.0700.16380.89
5.4.70.1430.15380.98
5.4.60.1570.15380.82
5.4.50.1530.14381.02
5.4.40.1800.14080.78
5.4.30.1770.15080.88
5.4.20.1900.12780.85
5.4.10.1770.15780.77
5.4.00.1400.16380.51
5.3.280.1630.05014.43
5.3.270.1430.04014.56
5.3.260.1630.04314.44
5.3.250.1730.04014.70
5.3.240.1700.03714.55
5.3.230.1930.04014.43
5.3.220.1770.04014.43
5.3.210.1670.04714.66
5.3.200.1730.04314.54
5.3.190.1770.04314.51
5.3.180.1600.03714.40
5.3.170.1830.04314.40
5.3.160.1570.03314.44
5.3.150.1670.04014.55
5.3.140.1600.03714.46
5.3.130.1670.03014.64
5.3.120.1630.03714.39
5.3.110.1530.04314.65
5.3.100.1730.03313.89
5.3.90.1770.03013.90
5.3.80.1570.04013.80
5.3.70.1730.04313.90

preferences:
29.1 ms | 400 KiB | 5 Q