3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt = []; $words = ['foo', 'bar', 'baz', 'fubar', 'fubaz']; while (300 > count($txt)) { $txt .= $words[array_rand($words)] . ' '; } echo rtrim($txt);

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.0100.00719.40
7.1.70.0130.92948.86
7.1.60.0170.89249.46
7.1.50.0170.90848.94
7.0.200.4271.10048.38

preferences:
33.46 ms | 401 KiB | 5 Q