3v4l.org

run code in 300+ PHP versions simultaneously
<?php $order = array('ACO', 'ZCO', 'Other'); function compare($a, $b) { $ai = array_search($a, $order); $bi = array_search($b, $order); return $a<$b ? -1 : $a>$b; } $a = array('ZCO'=>1, 'Other'=>1, 'ACO'=>1); uksort($a, compare); print_r($a);

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.3.60.0130.00718.31
8.3.50.0170.00521.95
8.3.40.0090.00618.71
8.3.30.0030.01119.04
8.3.20.0050.00320.33
8.3.10.0030.00522.12
8.3.00.0040.00422.34
8.2.180.0070.01116.75
8.2.170.0090.00622.96
8.2.160.0130.00320.69
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0070.00726.16
8.2.120.0090.00019.23
8.2.110.0000.00922.10
8.2.100.0060.00619.63
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0000.00717.80
8.2.50.0030.00618.07
8.2.40.0060.00318.09
8.2.30.0040.00417.99
8.2.20.0000.00817.70
8.2.10.0040.00419.66
8.2.00.0040.00417.80
8.1.280.0070.00725.92
8.1.270.0080.00021.84
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.80
8.1.230.0040.00719.23
8.1.220.0030.00517.91
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0000.00917.41
8.1.180.0040.00418.10
8.1.170.0030.00518.64
8.1.160.0000.00822.01
8.1.150.0020.00518.69
8.1.140.0000.00717.33
8.1.130.0030.00317.82
8.1.120.0030.00817.46
8.1.110.0030.00317.44
8.1.100.0000.00817.46
8.1.90.0030.00317.50
8.1.80.0000.00717.36
8.1.70.0000.00717.48
8.1.60.0030.00617.55
8.1.50.0000.00717.55
8.1.40.0030.00617.40
8.1.30.0030.00517.63
8.1.20.0050.00317.66
8.1.10.0080.00017.47
8.1.00.0050.00217.42
8.0.300.0000.00718.77
8.0.290.0040.00417.16
8.0.280.0030.00318.44
8.0.270.0000.00717.25
8.0.260.0000.00616.81
8.0.250.0030.00317.02
8.0.240.0030.00317.05
8.0.230.0030.00317.02
8.0.220.0030.00317.00
8.0.210.0060.00016.89
8.0.200.0040.00417.08
8.0.190.0100.00017.00
8.0.180.0050.00317.01
8.0.170.0040.00416.97
8.0.160.0000.00716.98
8.0.150.0000.00717.00
8.0.140.0000.00716.82
8.0.130.0030.00313.43
8.0.120.0030.00616.81
8.0.110.0000.00816.85
8.0.100.0040.00416.95
8.0.90.0040.00416.90
8.0.80.0090.00616.95
8.0.70.0040.00416.89
8.0.60.0070.00016.98
8.0.50.0000.00716.73
8.0.30.0120.00717.02
8.0.20.0140.01117.40
8.0.10.0040.00417.11
8.0.00.0040.01416.80
7.4.330.0030.00315.04
7.4.320.0040.00416.52
7.4.300.0030.00316.56
7.4.290.0030.00316.61
7.4.280.0040.00416.64
7.4.270.0030.00316.61
7.4.260.0030.00316.60
7.4.250.0000.00816.48
7.4.240.0030.00316.45
7.4.230.0080.00016.41
7.4.220.0040.01416.43
7.4.210.0100.00816.52
7.4.200.0070.00016.41
7.4.190.0030.00316.67
7.4.160.0130.00616.57
7.4.150.0100.00717.40
7.4.140.0100.01117.86
7.4.130.0120.00916.59
7.4.120.0100.00916.75
7.4.110.0030.01316.73
7.4.100.0110.00816.54
7.4.90.0070.01516.59
7.4.80.0060.01219.39
7.4.70.0070.01416.52
7.4.60.0080.00816.36
7.4.50.0060.00316.43
7.4.40.0040.01122.77
7.4.30.0130.00516.66
7.4.00.0040.01415.16
7.3.330.0070.00213.18
7.3.320.0050.00013.30
7.3.310.0040.00416.35
7.3.300.0030.00316.30
7.3.290.0110.00416.25
7.3.280.0100.00916.27
7.3.270.0110.00617.40
7.3.260.0120.00616.54
7.3.250.0110.01016.34
7.3.240.0110.00716.38
7.3.230.0180.00616.49
7.3.210.0180.00016.39
7.3.200.0140.00719.39
7.3.190.0150.00816.52
7.3.180.0060.00916.28
7.3.170.0060.00916.44
7.3.160.0090.00616.37
7.3.120.0040.00714.74
7.2.330.0140.00316.61
7.2.320.0070.01316.51
7.2.310.0100.00616.65
7.2.300.0060.01216.40
7.2.290.0100.00716.43
7.2.60.0030.01216.81
7.2.00.0040.00819.35
7.1.200.0000.01415.57
7.1.70.0040.00417.13
7.1.60.0040.00717.17
7.1.50.0030.00716.90
7.1.00.0070.06722.51
7.0.200.0000.01416.86
7.0.140.0030.07021.95
7.0.60.0130.05319.92
7.0.50.0070.07017.88
7.0.40.0030.04720.18
7.0.30.0200.08720.26
7.0.20.0270.07320.06
7.0.10.0000.06020.10
7.0.00.0100.03320.16
5.6.280.0070.07021.07
5.6.210.0070.06720.71
5.6.200.0030.07018.29
5.6.190.0100.07020.52
5.6.180.0300.05020.61
5.6.170.0200.04720.55
5.6.160.0030.04720.34
5.6.150.0070.07718.18
5.6.140.0030.06318.23
5.6.130.0070.08018.21
5.6.120.0070.08721.20
5.6.110.0070.08320.99
5.6.100.0100.07721.06
5.6.90.0100.08721.14
5.6.80.0030.04720.41
5.5.350.0170.07720.32
5.5.340.0130.07317.99
5.5.330.0130.03320.29
5.5.320.0330.07720.51
5.5.310.0200.04320.51
5.5.300.0070.05317.96
5.5.290.0030.08317.98
5.5.280.0100.06720.65
5.5.270.0100.07320.86
5.5.260.0030.04320.79
5.5.250.0100.03320.69
5.5.240.0330.06720.19
5.4.450.0570.06019.55
5.4.440.0600.06019.55
5.4.430.0000.06719.61
5.4.420.0030.06319.52
5.4.410.0230.04319.42
5.4.400.0830.00018.81
5.4.390.2970.00018.61
5.4.380.0200.05718.70
5.4.370.0870.05318.47
5.4.360.0730.05718.64
5.4.350.0900.05718.72
5.4.340.0770.06318.74
5.4.320.0050.03812.50
5.4.310.0020.04212.50
5.4.300.0070.04012.50
5.4.290.0070.04112.50
5.4.280.0100.03912.40
5.4.270.0130.05719.04
5.4.260.0170.06019.02
5.4.250.0130.05318.98
5.4.240.0130.06018.96
5.4.230.0070.05718.97
5.4.220.0200.05319.09
5.4.210.0100.05018.81
5.4.200.0100.05318.99
5.4.190.0170.06318.89
5.4.180.0130.05018.98
5.4.170.0130.05718.96
5.4.160.0130.07018.95
5.4.150.0130.05318.73
5.4.140.0070.05016.38
5.4.130.0130.06716.34
5.4.120.0030.05016.34
5.4.110.0030.06716.57
5.4.100.0100.05716.50
5.4.90.0070.05016.41
5.4.80.0130.04016.63
5.4.70.0130.06716.43
5.4.60.0070.05716.31
5.4.50.0070.05716.52
5.4.40.0100.05016.52
5.4.30.0100.05316.48
5.4.20.0100.06716.44
5.4.10.0000.06016.50
5.4.00.0100.05315.94
5.3.290.0050.05012.80
5.3.280.0100.06714.68
5.3.270.0130.05314.67
5.3.260.0070.05314.57
5.3.250.0130.05314.59
5.3.240.0100.05714.44
5.3.230.0100.06714.68
5.3.220.0070.05714.64
5.3.210.0130.07014.65
5.3.200.0070.06014.47
5.3.190.0100.04714.65
5.3.180.0130.04314.64
5.3.170.0100.07014.70
5.3.160.0030.05314.70
5.3.150.0100.05014.70
5.3.140.0030.05314.73
5.3.130.0130.05014.64
5.3.120.0070.05314.68
5.3.110.0070.06314.71
5.3.100.0130.04714.02
5.3.90.0200.04714.09
5.3.80.0070.05013.99
5.3.70.0030.05714.11
5.3.60.0030.05314.08
5.3.50.0070.04713.86
5.3.40.0100.04713.78
5.3.30.0000.06013.99
5.3.20.0100.05013.68
5.3.10.0100.04313.55
5.3.00.0030.05313.62
5.2.170.0070.05011.11
5.2.160.0100.04711.23
5.2.150.0070.04010.98
5.2.140.0000.04311.21
5.2.130.0070.03711.09
5.2.120.0030.05711.09
5.2.110.0130.04711.14
5.2.100.0100.03711.17
5.2.90.0070.04011.26
5.2.80.0000.04311.08
5.2.70.0030.04311.27
5.2.60.0070.04011.05
5.2.50.0100.03711.09
5.2.40.0000.04711.07
5.2.30.0200.04010.94
5.2.20.0030.05310.94
5.2.10.0070.03710.92
5.2.00.0070.05310.93
5.1.60.0070.0439.95
5.1.50.0030.04010.00
5.1.40.0030.03310.13
5.1.30.0070.03310.33
5.1.20.0100.04710.43
5.1.10.0130.03710.30
5.1.00.0070.03710.31
5.0.50.0070.0308.54
5.0.40.0070.0308.25
5.0.30.0070.0478.06
5.0.20.0030.0338.15
5.0.10.0000.0338.22
5.0.00.0070.0508.15
4.4.90.0000.0235.86
4.4.80.0030.0235.84
4.4.70.0000.0275.80
4.4.60.0070.0275.81
4.4.50.0030.0235.84
4.4.40.0000.0475.81
4.4.30.0030.0205.86
4.4.20.0000.0236.25
4.4.10.0030.0206.25
4.4.00.0030.0336.25
4.3.110.0000.0236.25
4.3.100.0030.0276.25
4.3.90.0000.0306.25
4.3.80.0030.0336.25
4.3.70.0000.0206.25
4.3.60.0030.0206.25
4.3.50.0000.0236.25
4.3.40.0000.0336.25
4.3.30.0070.0206.25
4.3.20.0070.0236.25
4.3.10.0070.0236.25
4.3.00.0030.0277.39

preferences:
47.51 ms | 400 KiB | 5 Q