3v4l.org

run code in 300+ PHP versions simultaneously
<?php $module_updates = array( 2 => 'update_2', 1000 => 'update_1000', 7001 => 'update_7001', 8000 => 'update_8000', 1001 => 'update_1001', 7000 => 'update_7000', ); uksort($module_updates, function($a, $b) { if ($a >= 7000 && $a < 9000) { $a -= 7000; } if ($b >= 7000 && $b < 9000) { $b -= 7000; } return ($a == $b) ? 0 : ($a > $b : 1 : -1); }); print_r($module_updates);

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)
5.5.120.0070.04717.34
5.5.110.0170.07017.32
5.5.100.0000.04317.18
5.5.90.0030.06717.20
5.5.80.0030.07317.22
5.5.70.0070.05017.29
5.5.60.0030.08017.22
5.5.50.0130.07317.16
5.5.40.0030.05017.20
5.5.30.0070.08017.29
5.5.20.0130.07017.19
5.5.10.0070.08317.29
5.5.00.0070.04317.22
5.4.280.0030.06019.03
5.4.270.0000.08719.13
5.4.260.0000.06719.03
5.4.250.0130.06319.05
5.4.240.0100.06719.08
5.4.230.0100.07319.13
5.4.220.0070.07019.13
5.4.210.0000.07019.09
5.4.200.0070.07719.09
5.4.190.0130.06718.94
5.4.180.0130.07319.02
5.4.170.0130.06719.04
5.4.160.0030.06319.08
5.4.150.0030.06719.00
5.4.140.0070.07016.32
5.4.130.0030.06716.35
5.4.120.0130.04716.43
5.4.110.0070.05316.42
5.4.100.0070.06716.41
5.4.90.0100.07316.45
5.4.80.0100.06016.32
5.4.70.0030.07316.30
5.4.60.0100.06716.38
5.4.50.0100.06016.33
5.4.40.0170.05016.26
5.4.30.0070.04316.42
5.4.20.0000.05016.20
5.4.10.0100.03016.29
5.4.00.0100.03015.68
5.3.280.0030.06014.45
5.3.270.0100.07314.58
5.3.260.0130.05714.66
5.3.250.0100.07014.63
5.3.240.0000.04014.61
5.3.230.0030.06014.66
5.3.220.0070.06314.59
5.3.210.0100.05314.67
5.3.200.0070.06714.66
5.3.190.0100.07314.64
5.3.180.0070.06014.54
5.3.170.0030.08014.55
5.3.160.0100.06714.59
5.3.150.0030.08314.61
5.3.140.0030.08014.61
5.3.130.0130.03014.50
5.3.120.0030.04014.61
5.3.110.0000.04314.54
5.3.100.0030.06014.07
5.3.90.0000.08014.04
5.3.80.0000.07014.08
5.3.70.0070.07314.23
5.3.60.0030.08314.05
5.3.50.0030.04713.98
5.3.40.0070.04314.16
5.3.30.0070.07313.81
5.3.20.0070.03313.71
5.3.10.0030.03313.54
5.3.00.0030.04313.66

preferences:
140.31 ms | 1394 KiB | 7 Q