3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 1 => ['Name' => 'John', 'Age' => '20', 'Code' => 'ABC 12'], 2 => ['Name' => 'John', 'Age' => '21', 'Code' => 'ABC 1'], 3 => ['Name' => 'Mary', 'Age' => '20', 'Code' => 'ABC 10'], 4 => ['Name' => 'John', 'Age' => '20', 'Code' => 'ABC 1'], 5 => ['Name' => 'John', 'Age' => '20', 'Code' => 'ABC 100'], 6 => ['Name' => 'John', 'Age' => '20', 'Code' => 'ABC 2'], ]; foreach ($array as ['Name' => $names[], 'Age' => $ages[], 'Code' => $codes[]]); array_multisort( $names, $ages, SORT_DESC, SORT_NUMERIC, $codes, SORT_ASC, SORT_NATURAL, $array ); var_export($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.120.0090.00318.80
8.4.110.0110.00918.69
8.4.100.0140.00717.52
8.4.90.0120.00820.65
8.4.80.0090.01020.43
8.4.70.0020.00619.16
8.4.60.0070.00320.73
8.4.50.0140.00817.69
8.4.40.0080.00017.66
8.4.30.0070.01120.57
8.4.20.0160.00017.85
8.4.10.0090.00017.51
8.3.250.0130.00618.54
8.3.240.0050.00316.81
8.3.230.0110.00816.77
8.3.220.0040.00519.16
8.3.210.0120.00716.75
8.3.200.0090.00116.45
8.3.190.0110.00816.71
8.3.180.0110.00916.70
8.3.170.0000.00819.07
8.3.160.0120.00618.37
8.3.150.0110.00720.72
8.3.140.0120.00016.79
8.3.130.0000.01018.36
8.3.120.0060.00319.21
8.3.110.0130.00320.94
8.3.100.0120.00316.50
8.3.90.0040.00426.77
8.3.80.0070.00318.30
8.3.70.0120.00916.75
8.3.60.0040.01116.60
8.3.50.0130.00617.88
8.3.40.0160.00320.47
8.3.30.0120.00318.85
8.3.20.0050.00324.18
8.3.10.0030.00624.66
8.3.00.0050.00326.16
8.2.290.0090.00217.31
8.2.280.0070.00818.59
8.2.270.0140.00417.37
8.2.260.0090.00919.91
8.2.250.0080.00016.90
8.2.240.0050.00519.00
8.2.230.0040.00422.58
8.2.220.0000.00824.06
8.2.210.0070.01026.77
8.2.200.0090.00016.63
8.2.190.0140.00316.58
8.2.180.0060.01225.92
8.2.170.0140.00718.96
8.2.160.0090.00622.96
8.2.150.0050.00225.66
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0050.00220.94
8.2.110.0030.00619.30
8.2.100.0130.00217.66
8.2.90.0030.00619.39
8.2.80.0000.00919.15
8.2.70.0000.01017.75
8.2.60.0040.00418.03
8.2.50.0060.00318.07
8.2.40.0060.00618.16
8.2.30.0040.00418.19
8.2.20.0070.00020.34
8.2.10.0040.00417.55
8.2.00.0040.00419.17
8.1.330.0130.00616.26
8.1.320.0130.00816.04
8.1.310.0040.01216.88
8.1.300.0060.00917.63
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0070.00324.66
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.13
8.1.230.0000.01220.88
8.1.220.0040.00417.74
8.1.210.0000.00818.90
8.1.200.0030.00617.25
8.1.190.0050.00317.25
8.1.180.0000.00818.10
8.1.170.0000.00918.71
8.1.160.0040.00418.88
8.1.150.0040.00418.61
8.1.140.0050.00317.43
8.1.130.0030.00318.77
8.1.120.0040.00417.38
8.1.110.0050.00317.38
8.1.100.0000.00817.46
8.1.90.0040.00417.47
8.1.80.0080.00017.51
8.1.70.0070.00017.44
8.1.60.0040.00417.59
8.1.50.0080.00017.42
8.1.40.0050.00217.51
8.1.30.0030.00617.62
8.1.20.0040.00417.49
8.1.10.0130.00617.42
8.1.00.0220.00417.41
8.0.300.0070.00020.02
8.0.290.0070.00016.75
8.0.280.0030.00318.32
8.0.270.0000.00716.89
8.0.260.0040.00418.36
8.0.250.0030.00316.92
8.0.240.0040.00416.83
8.0.230.0060.00016.83
8.0.220.0000.00716.79
8.0.210.0000.00716.91
8.0.200.0030.00316.99
8.0.190.0030.00417.02
8.0.180.0030.00516.82
8.0.170.0000.00916.99
8.0.160.0070.00316.79
8.0.150.0040.00316.91
8.0.140.0150.00516.67
8.0.130.0170.00316.78
8.0.120.0190.00016.80
8.0.110.0260.00016.92
8.0.100.0230.00616.70
8.0.90.0160.00516.75
8.0.80.0140.00616.86
8.0.70.0130.00716.64
8.0.60.0150.00516.89
8.0.50.0170.00516.84
8.0.30.0160.00416.70
8.0.20.0100.01016.89
8.0.10.0150.00516.93
7.4.330.0000.00515.55
7.4.320.0070.00016.56
7.4.300.0080.00016.58
7.4.290.0070.00016.44
7.4.280.0080.00016.55
7.4.270.0100.00016.57
7.4.260.0180.00416.52
7.4.250.0190.00316.54
7.4.240.0140.00716.47
7.4.230.0180.00616.46
7.4.220.0070.01316.45
7.4.210.0080.01216.54
7.4.200.0180.00016.48
7.4.190.0120.00716.62
7.4.180.0130.00716.58
7.4.160.0150.00416.62
7.4.150.0140.00416.45
7.4.140.0120.00616.49
7.4.130.0100.01016.43
7.4.120.0160.00316.48
7.4.110.0130.00616.23
7.4.100.0160.00416.35
7.4.90.0220.00016.39
7.4.80.0140.00616.31
7.4.70.0120.00716.45
7.4.60.0140.00516.39
7.4.50.0170.00316.38
7.4.40.0150.00416.20
7.4.30.0190.00016.43
7.4.20.0170.00316.28
7.4.10.0130.00616.40
7.4.00.0100.01016.45

preferences:
29.48 ms | 403 KiB | 5 Q