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 > $b) { return ($a >= 7000 && $a < 9000) ? -1 : 1; } elseif ($b > $a) { return ($b >= 7000 && $b < 9000) ? -1 : 1; } else { return 0; } })

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.08017.31
5.5.110.0030.07717.26
5.5.100.0070.05017.23
5.5.90.0070.07317.20
5.5.80.0130.05017.24
5.5.70.0070.07017.23
5.5.60.0070.07717.29
5.5.50.0070.05017.21
5.5.40.0100.07017.29
5.5.30.0100.08017.22
5.5.20.0030.07317.18
5.5.10.0070.08017.23
5.5.00.0030.07717.31
5.4.280.0030.05319.13
5.4.270.0100.05319.13
5.4.260.0030.05019.14
5.4.250.0070.08019.03
5.4.240.0100.07019.11
5.4.230.0030.06319.13
5.4.220.0100.07719.11
5.4.210.0030.05019.27
5.4.200.0100.06719.13
5.4.190.0130.05019.26
5.4.180.0070.05719.13
5.4.170.0130.03318.94
5.4.160.0130.04318.87
5.4.150.0130.04319.25
5.4.140.0070.06016.44
5.4.130.0130.06716.39
5.4.120.0130.06316.39
5.4.110.0100.05316.59
5.4.100.0070.04016.45
5.4.90.0100.06716.32
5.4.80.0000.04016.57
5.4.70.0070.07316.42
5.4.60.0100.07316.32
5.4.50.0070.05716.46
5.4.40.0000.05016.40
5.4.30.0030.06016.55
5.4.20.0130.05716.37
5.4.10.0130.04016.20
5.4.00.0030.04715.80
5.3.280.0130.06714.60
5.3.270.0000.06314.46
5.3.260.0070.07714.48
5.3.250.0000.05314.71
5.3.240.0030.04014.57
5.3.230.0130.04714.61
5.3.220.0070.07014.58
5.3.210.0100.06314.53
5.3.200.0100.03714.63
5.3.190.0130.05314.64
5.3.180.0030.05014.60
5.3.170.0070.04714.56
5.3.160.0000.08014.55
5.3.150.0100.06714.64
5.3.140.0030.04714.61
5.3.130.0000.05714.77
5.3.120.0030.05714.65
5.3.110.0000.08314.63
5.3.100.0100.08314.11
5.3.90.0100.07014.06
5.3.80.0100.06714.03
5.3.70.0100.06014.11
5.3.60.0030.05014.09
5.3.50.0070.04713.95
5.3.40.0100.06314.15
5.3.30.0070.04013.76
5.3.20.0030.07313.76
5.3.10.0170.06013.74
5.3.00.0170.07013.69

preferences:
134.1 ms | 1398 KiB | 7 Q