3v4l.org

run code in 300+ PHP versions simultaneously
<?php $kat_list=array(1,2,3,4); shuffle($kat_list); // shuffle list $count=3; for($i=0; $i<$count; ++$i) { // get the first N items of the shuffled list printf("%d ", $kat_list[$i]); }

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)
8.2.50.0080.00519.52
8.2.40.0100.00719.52
8.2.30.0120.00619.52
8.2.20.0120.00119.52
8.2.10.0150.00119.52
8.2.00.0110.00519.52
8.1.180.0120.00819.52
8.1.170.0130.00319.52
8.1.160.0070.01019.52
8.1.150.0110.00519.52
8.1.140.0130.00419.52
8.1.130.0130.00319.52
8.1.120.0070.01019.52
8.1.110.0130.00419.52
8.1.100.0100.00619.52
8.1.90.0080.00819.52
8.1.80.0130.00519.52
8.1.70.0120.00519.52
8.1.60.0150.00319.52
8.1.50.0160.00219.52
8.1.40.0120.00519.52
8.1.30.0140.00419.52
8.1.20.0120.00619.52
8.1.10.0110.00619.52
8.1.00.0120.00519.52
8.0.280.0140.00219.52
8.0.270.0170.00019.52
8.0.260.0150.00319.52
8.0.250.0110.00419.52
8.0.240.0130.00419.52
8.0.230.0120.00719.52
8.0.220.0140.00319.52
8.0.210.0150.00319.52
8.0.200.0100.00719.52
8.0.190.0080.00919.52
8.0.180.0110.00519.52
8.0.170.0130.00419.52
8.0.160.0120.00619.52
8.0.150.0110.00619.52
8.0.140.0120.00619.52
8.0.130.0110.00519.52
8.0.120.0100.00619.52
8.0.110.0100.00619.52
8.0.100.0090.00719.52
8.0.90.0140.00219.52
8.0.80.0140.00419.52
8.0.70.0080.00919.52
8.0.60.0130.00319.52
8.0.50.0120.00319.52
8.0.30.0080.00719.52
8.0.20.0070.00819.52
8.0.10.0160.00019.52

preferences:
43.91 ms | 403 KiB | 5 Q