3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = Array ( 0 => Array ( 'name' => 'Nakiya', 'country' => 'USA', 'id' => 3, ), 1 => Array ( 'name' => 'Taylor', 'country' => 'UK', 'id' => 2, ), 2 => Array ( 'name' => 'Jack', 'country' => 'France', 'id' => 1, ) ); array_multisort(array_map(function($element) { return $element['id']; }, $array), SORT_ASC, $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.30.0130.01018.80
8.4.20.0160.00318.57
8.4.10.0080.01117.68
8.3.160.0030.01617.15
8.3.150.0110.00717.13
8.3.140.0050.00316.93
8.3.130.0030.00616.72
8.3.120.0040.00419.00
8.3.110.0040.00420.94
8.3.100.0040.00424.06
8.3.90.0000.00826.77
8.3.80.0110.00018.02
8.3.70.0150.00318.27
8.3.60.0000.01418.15
8.3.50.0110.00817.92
8.3.40.0060.00918.88
8.3.30.0130.00318.68
8.3.20.0070.00321.52
8.3.10.0000.00721.93
8.3.00.0070.00022.58
8.2.270.0140.00417.26
8.2.260.0040.01216.62
8.2.250.0080.00017.03
8.2.240.0050.00317.25
8.2.230.0080.00022.58
8.2.220.0090.00037.54
8.2.210.0050.00326.77
8.2.200.0090.00016.38
8.2.190.0130.01016.58
8.2.180.0100.01018.29
8.2.170.0070.00722.96
8.2.160.0090.00620.44
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00426.16
8.2.110.0070.00321.11
8.2.100.0070.00417.72
8.2.90.0040.00417.97
8.2.80.0050.00519.81
8.2.70.0060.00317.63
8.2.60.0050.00317.75
8.2.50.0000.00818.10
8.2.40.0040.00421.14
8.2.30.0000.00719.43
8.2.20.0040.00418.15
8.2.10.0050.00319.50
8.2.00.0040.00419.30
8.1.310.0090.00618.60
8.1.300.0110.00720.34
8.1.290.0060.00318.88
8.1.280.0060.00825.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0190.00320.83
8.1.230.0110.00022.12
8.1.220.0000.00817.74
8.1.210.0050.00518.77
8.1.200.0000.00817.35
8.1.190.0040.00418.97
8.1.180.0060.00318.10
8.1.170.0080.00018.59
8.1.160.0070.00018.89
8.1.150.0050.00218.77
8.1.140.0030.00522.04
8.1.130.0030.00320.02
8.1.120.0000.00817.46
8.1.110.0000.00817.51
8.1.100.0030.00717.34
8.1.90.0050.00317.37
8.1.80.0030.00417.33
8.1.70.0100.00017.49
8.1.60.0000.00717.59
8.1.50.0040.00717.54
8.1.40.0000.00817.46
8.1.30.0100.00017.56
8.1.20.0050.00317.54
8.1.10.0000.00817.59
8.1.00.0000.00817.40
8.0.300.0040.00419.96
8.0.290.0040.00416.75
8.0.280.0080.00018.38
8.0.270.0000.00717.13
8.0.260.0000.00620.15
8.0.250.0000.00716.86
8.0.240.0000.00616.78
8.0.230.0030.00316.80
8.0.220.0000.00716.87
8.0.210.0030.00316.80
8.0.200.0000.00617.03
8.0.190.0050.00216.96
8.0.180.0040.00416.96
8.0.170.0030.00616.91
8.0.160.0070.00016.89
8.0.150.0040.00316.89
8.0.140.0000.00816.71
8.0.130.0060.00013.27
8.0.120.0000.00916.87
8.0.110.0040.00416.80
8.0.100.0050.00216.87
8.0.90.0000.00816.93
8.0.80.0120.00316.82
8.0.70.0000.00716.68
8.0.60.0070.00016.77
8.0.50.0040.00416.68
8.0.30.0130.00317.05
8.0.20.0080.01616.95
8.0.10.0040.00417.01
8.0.00.0070.01116.80
7.4.330.0030.00315.55
7.4.320.0060.00016.41
7.4.300.0060.00016.58
7.4.290.0000.00916.55
7.4.280.0040.00416.61
7.4.270.0000.00816.61
7.4.260.0030.00313.30
7.4.250.0000.00716.61
7.4.240.0060.00216.50
7.4.230.0070.00016.60
7.4.220.0050.00216.60
7.4.210.0080.00616.52
7.4.200.0030.00316.30
7.4.130.0120.00416.57
7.4.120.0170.00316.55
7.4.110.0120.00916.41
7.4.100.0090.00916.38
7.4.90.0190.00316.57
7.4.80.0090.00919.39
7.4.70.0100.00716.45
7.4.60.0090.00616.46
7.4.50.0000.01616.29
7.4.40.0100.01016.59
7.4.10.0130.00714.72
7.4.00.0110.00514.85
7.3.330.0050.00216.33
7.3.320.0000.00513.16
7.3.310.0000.00716.31
7.3.300.0000.00716.27
7.3.290.0030.00316.19
7.3.260.0100.00916.37
7.3.240.0090.00916.45
7.3.230.0160.00016.26
7.3.210.0100.01416.25
7.3.200.0130.01016.29
7.3.190.0130.00316.50
7.3.180.0110.01116.46
7.3.170.0100.01016.32
7.3.160.0060.00916.47
7.3.130.0060.01214.63
7.3.120.0100.00314.98
7.3.110.0040.01114.93
7.3.100.0090.01014.85
7.3.90.0090.01314.79
7.3.80.0130.00515.00
7.3.70.0130.00314.71
7.3.60.0080.00914.73
7.3.50.0340.00714.67
7.3.40.0370.00514.70
7.3.30.0080.01214.57
7.3.20.0310.00715.49
7.3.10.0250.00915.71
7.3.00.0360.00615.63
7.2.330.0120.00316.71
7.2.320.0070.00816.48
7.2.310.0090.01216.43
7.2.300.0100.00716.41
7.2.290.0130.00516.55
7.2.260.0040.01515.14
7.2.250.0000.01815.02
7.2.240.0000.01315.03
7.2.230.0060.01114.99
7.2.220.0050.01215.01
7.2.210.0070.01214.81
7.2.200.0120.00714.75
7.2.190.0110.00714.94
7.2.180.0150.00414.99
7.2.170.0120.00714.88
7.2.160.0100.01114.97
7.2.150.0320.00815.83
7.2.140.0300.01115.82
7.2.130.0250.01115.90
7.2.120.0210.01215.69
7.2.110.0230.01015.75
7.2.100.0340.00915.95
7.2.90.0410.00215.92
7.2.80.0310.00915.84
7.2.70.0250.00815.71
7.2.60.0300.00515.89
7.2.50.0310.00515.95
7.2.40.0320.00815.83
7.2.30.0430.01115.81
7.2.20.0240.00715.99
7.2.10.0250.00715.75
7.2.00.0250.00515.61
7.1.330.0070.00715.87
7.1.320.0150.00614.89
7.1.310.0280.00814.93
7.1.300.0200.00714.91
7.1.290.0300.00514.80
7.1.280.0310.00714.72
7.1.270.0240.00914.64
7.1.260.0280.00514.85
7.1.250.0310.00714.72
7.1.240.0000.01115.89
7.1.230.0040.00415.92
7.1.220.0000.01715.88
7.1.210.0060.00915.39
7.1.200.0000.00815.73
7.1.190.0000.00815.90
7.1.180.0090.00315.48
7.1.170.0070.00715.87
7.1.160.0040.01115.66
7.1.150.0060.00615.90
7.1.140.0040.01115.69
7.1.130.0040.00715.90
7.1.120.0000.01415.82
7.1.110.0060.00815.91
7.1.100.0070.01015.91
7.1.90.0030.01015.91
7.1.80.0030.01215.95
7.1.70.0090.00615.85
7.1.60.0040.01115.63
7.1.50.0060.00315.84
7.1.40.0090.00615.73
7.1.30.0030.01015.47
7.1.20.0030.01315.70
7.1.10.0080.00515.88
7.1.00.0030.00715.75

preferences:
29.62 ms | 403 KiB | 5 Q