3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ '2' => [ 'title' => 'Flower', 'order' => 3 ], '3' => [ 'title' => 'Rock', 'order' => 1 ], '4' => [ 'title' => 'Grass', 'order' => 2 ] ]; $keys = array_keys($array); array_multisort( array_column($array, 'order'), SORT_DESC, SORT_NUMERIC, $array, $keys ); $array = array_combine($keys, $array); print_r($array);

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.4.20.0130.00617.55
8.4.10.0100.01017.37
8.3.150.0120.00620.81
8.3.140.0040.00718.72
8.3.130.0070.00316.70
8.3.120.0080.00817.88
8.3.110.0060.00318.32
8.3.100.0040.00418.30
8.3.90.0000.00826.77
8.3.80.0030.00616.38
8.3.70.0130.00618.56
8.3.60.0110.00718.31
8.3.50.0120.00621.82
8.3.40.0090.00918.54
8.3.30.0070.00718.59
8.3.20.0090.00720.93
8.3.10.0040.00421.65
8.3.00.0040.00420.87
8.2.260.0180.00416.75
8.2.250.0090.00916.73
8.2.240.0090.00618.70
8.2.230.0030.00620.94
8.2.220.0090.00024.06
8.2.210.0190.00026.77
8.2.200.0040.00416.38
8.2.190.0130.00918.54
8.2.180.0110.00325.92
8.2.170.0110.00318.68
8.2.160.0080.01222.96
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0050.00319.35
8.2.120.0040.00419.51
8.2.110.0090.00719.14
8.2.100.0130.00217.61
8.2.90.0100.00418.47
8.2.80.0060.00717.67
8.2.70.0100.00317.64
8.2.60.0080.00517.64
8.2.50.0130.00017.61
8.2.40.0090.00318.93
8.2.30.0080.00518.19
8.2.20.0130.00017.43
8.2.10.0090.00417.73
8.2.00.0060.00617.71
8.1.310.0110.00718.50
8.1.300.0120.00618.44
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0070.00024.66
8.1.260.0080.01217.13
8.1.250.0120.00817.13
8.1.240.0100.00319.85
8.1.230.0110.00318.88
8.1.220.0090.00317.58
8.1.210.0110.00218.02
8.1.200.0090.00617.05
8.1.190.0110.00316.93
8.1.180.0110.00317.61
8.1.170.0100.00317.79
8.1.160.0080.00417.93
8.1.150.0100.00217.80
8.1.140.0040.00818.14
8.1.130.0080.00517.19
8.1.120.0070.00617.19
8.1.110.0090.00517.21
8.1.100.0080.00617.24
8.1.90.0070.00617.31
8.1.80.0080.00517.25
8.1.70.0100.00417.34
8.1.60.0100.00517.41
8.1.50.0130.00417.34
8.1.40.0140.00117.36
8.1.30.0090.00717.45
8.1.20.0130.00317.39
8.1.10.0100.00617.37
8.1.00.0100.00517.31
8.0.300.0110.00118.14
8.0.290.0110.00116.61
8.0.280.0080.00417.43
8.0.270.0080.00516.66
8.0.260.0080.00417.40
8.0.250.0100.00416.67
8.0.240.0080.00416.72
8.0.230.0080.00616.67
8.0.220.0080.00316.67
8.0.210.0080.00216.67
8.0.200.0060.00616.82
8.0.190.0060.00516.75
8.0.180.0090.00316.75
8.0.170.0090.00316.68
8.0.160.0070.00516.69
8.0.150.0080.00416.53
8.0.140.0050.00616.66
8.0.130.0060.00415.25
8.0.120.0090.00416.00
8.0.110.0050.00616.04
8.0.100.0100.00316.01
8.0.90.0080.00416.05
8.0.80.0060.00816.08
8.0.70.0070.00615.96
8.0.60.0080.00516.03
8.0.50.0070.00515.98
8.0.30.0160.00716.37
8.0.20.0120.00816.65
8.0.10.0120.00616.30
8.0.00.0100.00716.37
7.4.330.0030.00614.50
7.4.320.0090.00516.20
7.4.300.0090.00416.35
7.4.290.0060.00716.36
7.4.280.0090.00416.30
7.4.270.0080.00616.32
7.4.260.0110.00715.56
7.4.250.0110.00415.67
7.4.240.0100.00415.79
7.4.230.0090.00415.93
7.4.220.0130.00415.64
7.4.210.0080.00815.68
7.4.200.0070.00615.75
7.4.190.0110.00415.59
7.4.180.0080.00615.65
7.4.160.0160.00615.88
7.4.150.0110.00816.02
7.4.140.0170.00716.23
7.4.130.0110.00715.93
7.4.120.0100.00615.92
7.4.110.0120.00715.92
7.4.100.0110.00715.91
7.4.90.0120.00715.88
7.4.80.0100.00716.18
7.4.70.0110.00815.90
7.4.60.0100.00816.00
7.4.50.0140.00415.81
7.4.40.0110.00915.76
7.4.30.0120.00715.81
7.4.20.0130.00515.75
7.4.10.0120.00615.77
7.4.00.0100.00615.50
7.3.330.0100.00414.72
7.3.320.0090.00414.83
7.3.310.0090.00615.33
7.3.300.0100.00515.48
7.3.290.0120.00615.61
7.3.280.0110.00615.68
7.3.270.0150.00615.86
7.3.260.0140.00615.80
7.3.250.0110.00715.77
7.3.240.0110.00615.72
7.3.230.0140.00615.74
7.3.220.0130.00515.53
7.3.210.0140.00315.65
7.3.200.0130.00715.73
7.3.190.0130.00715.70
7.3.180.0120.00615.69
7.3.170.0110.00715.67
7.3.160.0110.00615.53
7.3.150.0110.00615.67
7.3.140.0120.00615.51
7.3.130.0120.00815.55
7.3.120.0110.00515.39
7.3.110.0130.00615.35
7.3.100.0090.00815.31
7.3.90.0120.00515.47
7.3.80.0100.00615.32
7.3.70.0120.00515.24
7.3.60.0090.00715.19
7.3.50.0100.00815.19
7.3.40.0090.00715.18
7.3.30.0110.00515.22
7.3.20.0130.00815.78
7.3.10.0100.00915.64
7.3.00.0160.00515.77
7.2.340.0140.01015.70
7.2.330.0160.00515.78
7.2.320.0130.00815.86
7.2.310.0150.00615.82
7.2.300.0150.00915.84
7.2.290.0140.00715.82
7.2.280.0110.00915.78
7.2.270.0130.00815.81
7.2.260.0130.00815.72
7.2.250.0130.00815.60
7.2.240.0120.00815.52
7.2.230.0140.00615.58
7.2.220.0150.00515.56
7.2.210.0130.00615.53
7.2.200.0140.00615.47
7.2.190.0100.00915.36
7.2.180.0120.00715.35
7.2.170.0110.00715.41
7.2.160.0120.00615.30
7.2.150.0130.00715.91
7.2.140.0140.00715.94
7.2.130.0140.00816.02
7.2.120.0240.00716.14
7.2.110.0130.00716.12
7.2.100.0120.00916.18
7.2.90.0230.00716.01
7.2.80.0220.00716.05
7.2.70.0290.00815.98
7.2.60.0180.00716.04
7.2.50.0200.00615.91
7.2.40.0200.00715.98
7.2.30.0220.00715.90
7.2.20.0200.00915.91
7.2.10.0270.00716.00
7.2.00.0170.00916.05
7.1.330.0140.00915.11
7.1.320.0140.00715.14
7.1.310.0140.00715.04
7.1.300.0160.00814.83
7.1.290.0130.00714.88
7.1.280.0130.00614.91
7.1.270.0200.00614.88
7.1.260.0130.00714.80
7.1.250.0110.00815.03
7.1.240.0150.00615.04
7.1.230.0160.00615.05
7.1.220.0160.00615.01
7.1.210.0220.00614.98
7.1.200.0200.00714.98
7.1.190.0240.00614.96
7.1.180.0220.00714.92
7.1.170.0220.00714.83
7.1.160.0220.00714.86
7.1.150.0200.00714.84
7.1.140.0270.00714.90
7.1.130.0270.00714.88
7.1.120.0220.00814.98
7.1.110.0200.00714.97
7.1.100.0200.00614.93
7.1.90.0210.00714.94
7.1.80.0200.00714.93
7.1.70.0180.00814.81
7.1.60.0210.00717.82
7.1.50.0300.00817.87
7.1.40.0210.00817.87
7.1.30.0210.00917.86
7.1.20.0220.00817.84
7.1.10.0190.00714.81
7.1.00.0170.00814.89
7.0.330.0140.00814.73
7.0.320.0180.00714.82
7.0.310.0210.00714.68
7.0.300.0190.00814.57
7.0.290.0240.00714.58
7.0.280.0230.00814.72
7.0.270.0210.00814.63
7.0.260.0240.00614.66
7.0.250.0240.00614.75
7.0.240.0200.00914.74
7.0.230.0230.00814.76
7.0.220.0310.00714.71
7.0.210.0220.00614.66
7.0.200.0240.00714.69
7.0.190.0230.00714.68
7.0.180.0210.00714.63
7.0.170.0180.00814.64
7.0.160.0190.00714.66
7.0.150.0190.00714.59
7.0.140.0170.00814.68
7.0.130.0330.00714.67
7.0.120.0160.00914.70
7.0.110.0190.00714.60
7.0.100.0140.00814.64
7.0.90.0230.00814.58
7.0.80.0190.00614.57
7.0.70.0170.00714.65
7.0.60.0180.00714.65
7.0.50.0180.00814.75
7.0.40.0190.00414.63
7.0.30.0170.00714.54
7.0.20.0180.00714.64
7.0.10.0150.00814.67
7.0.00.0170.00714.63
5.6.400.0140.00714.90
5.6.390.0150.00614.83
5.6.380.0140.00714.66
5.6.370.0160.00614.83
5.6.360.0120.01014.75
5.6.350.0140.00814.84
5.6.340.0130.00914.71
5.6.330.0150.00714.77
5.6.320.0150.00714.86
5.6.310.0130.00914.83
5.6.300.0140.01115.03
5.6.290.0160.00815.04
5.6.280.0150.01015.07
5.6.270.0120.01315.09
5.6.260.0140.01115.06
5.6.250.0150.01215.04
5.6.240.0150.01115.08
5.6.230.0140.01115.09
5.6.220.0130.01315.11
5.6.210.0140.01215.06
5.6.200.0150.01015.05
5.6.190.0160.01015.08
5.6.180.0150.01115.07
5.6.170.0150.01215.12
5.6.160.0130.01215.12
5.6.150.0130.01115.04
5.6.140.0140.01115.03
5.6.130.0150.01015.09
5.6.120.0130.01115.00
5.6.110.0160.00815.01
5.6.100.0140.01215.09
5.6.90.0140.01015.00
5.6.80.0130.01114.92
5.6.70.0140.01014.93
5.6.60.0140.01014.98
5.6.50.0130.01114.97
5.6.40.0120.01214.92
5.6.30.0150.00914.95
5.6.20.0120.01214.90
5.6.10.0150.00914.92
5.6.00.0140.00914.89
5.5.380.0160.01014.36
5.5.370.0160.01114.31
5.5.360.0150.00914.25
5.5.350.0140.01214.36
5.5.340.0150.01014.40
5.5.330.0160.00914.30
5.5.320.0150.01014.32
5.5.310.0130.01014.36
5.5.300.0130.01014.32
5.5.290.0150.01214.41
5.5.280.0140.01214.29
5.5.270.0150.00914.32
5.5.260.0130.01214.31
5.5.250.0130.01114.30
5.5.240.0140.00914.24
5.5.230.0120.01114.27
5.5.220.0140.00914.27
5.5.210.0120.01014.23
5.5.200.0130.01014.25
5.5.190.0110.01114.19
5.5.180.0130.01014.20
5.5.170.0140.00814.38
5.5.160.0140.00914.32
5.5.150.0120.01114.24
5.5.140.0110.01114.18
5.5.130.0130.01014.18
5.5.120.0140.00914.18
5.5.110.0130.01014.19
5.5.100.0120.01114.27
5.5.90.0140.00914.19
5.5.80.0120.01114.25
5.5.70.0130.01114.21
5.5.60.0130.01014.18
5.5.50.0100.01114.19
5.5.40.0120.00914.12
5.5.30.0110.01014.28
5.5.20.0120.01014.24
5.5.10.0130.01114.27
5.5.00.0150.01114.25

preferences:
35.84 ms | 403 KiB | 5 Q