3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = []; foreach (range(1,5000) as $i) { $foo[] = ['username' => md5(time()), 'limits' => ['ep' => rand(1,20)]]; } $time_start = microtime(true); foreach ($foo as $row) { if ($row['limits']['ep'] == 3) { $a = 1 + 2; } array_search("needle", array_column($foo, "username")); } $time_end = microtime(true); $time = $time_end - $time_start; echo "Did nothing in $time seconds\n";

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.3.10.7080.59018.59
7.3.00.4480.53218.59
7.2.130.1070.49118.64
7.2.120.2710.49619.06
7.2.112.0380.45618.99
7.2.100.8160.47318.65
7.2.90.5320.47919.08
7.2.80.7070.47018.73
7.2.70.3620.47619.14
7.2.60.3700.50918.81
7.2.50.2230.46618.80
7.2.40.3510.47419.03
7.2.30.1240.52319.09
7.2.20.2900.50919.19
7.2.10.6390.51819.08
7.2.00.6530.48718.82
7.1.250.0790.49017.55

preferences:
31.61 ms | 401 KiB | 5 Q