3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = Array ( 0 => Array ( 'id' => 16059, 'product_id' => 4013, 'Product' => Array ( 'id' => 4013, 'name' => 'XYZ' ) ), 1 => Array ( 'id' => 16060, 'product_id' => 4462, 'Product' => Array ( 'id' => 4462, 'name' => 'MNOP' ) ), 2 => Array ( 'id' => 16061, 'product_id' => 4473, 'Product' => Array ( 'id' => 4473, 'name' => 'ABCD' ) ) ); $t = []; foreach ($arr as $key => $value) { $t[$key] = $value['Product']['name']; } array_multisort($t, SORT_ASC, $arr); print_r($arr);

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.140.0140.00717.57
8.4.130.0130.00417.51
8.4.120.0130.00720.55
8.4.110.0130.00722.39
8.4.100.0090.00817.62
8.4.90.0120.00920.27
8.4.80.0100.00918.75
8.4.70.0090.00717.96
8.4.60.0140.00618.78
8.4.50.0120.00722.19
8.4.40.0070.00319.29
8.4.30.0100.00018.93
8.4.20.0100.01020.54
8.4.10.0090.00619.57
8.3.270.0130.00716.50
8.3.260.0090.01116.54
8.3.250.0070.00818.91
8.3.240.0100.01016.79
8.3.230.0100.01116.54
8.3.220.0130.00619.12
8.3.210.0170.00518.48
8.3.200.0040.00516.54
8.3.190.0030.00618.86
8.3.180.0040.00516.72
8.3.170.0090.00618.88
8.3.160.0090.00920.15
8.3.150.0180.00018.27
8.3.140.0100.00617.03
8.3.130.0040.00418.64
8.3.120.0000.00820.65
8.3.110.0070.00320.94
8.3.100.0100.01024.06
8.3.90.0110.00726.77
8.3.80.0100.00018.27
8.3.70.0110.00716.63
8.3.60.0080.01216.61
8.3.50.0120.00516.43
8.3.40.0040.01118.79
8.3.30.0030.01018.63
8.3.20.0050.00321.69
8.3.10.0050.00321.91
8.3.00.0040.00423.48
8.2.290.0050.00316.80
8.2.280.0080.01118.70
8.2.270.0130.00618.98
8.2.260.0000.00816.71
8.2.250.0090.00918.77
8.2.240.0000.00916.90
8.2.230.0090.00022.58
8.2.220.0080.00837.54
8.2.210.0040.00426.77
8.2.200.0090.00018.16
8.2.190.0110.00716.63
8.2.180.0100.01016.50
8.2.170.0060.01322.96
8.2.160.0100.00720.35
8.2.150.0060.00324.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0070.00026.16
8.2.110.0100.00019.29
8.2.100.0040.00817.84
8.2.90.0000.00819.55
8.2.80.0080.00019.19
8.2.70.0060.00318.00
8.2.60.0050.00318.22
8.2.50.0050.00318.10
8.2.40.0040.00422.11
8.2.30.0000.00719.33
8.2.20.0040.00418.12
8.2.10.0050.00519.55
8.2.00.0000.00719.21
8.1.330.0150.00421.95
8.1.320.0120.00715.99
8.1.310.0040.00418.38
8.1.300.0000.00818.30
8.1.290.0030.00618.88
8.1.280.0190.00325.92
8.1.270.0080.00023.83
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0070.01522.19
8.1.230.0060.00622.81
8.1.220.0040.00417.88
8.1.210.0050.00318.84
8.1.200.0050.00617.35
8.1.190.0030.00517.35
8.1.180.0040.00418.10
8.1.170.0070.00318.65
8.1.160.0000.00718.90
8.1.150.0000.00818.76
8.1.140.0040.00418.94
8.1.130.0030.00319.05
8.1.120.0000.00717.48
8.1.110.0060.00317.45
8.1.100.0000.00717.50
8.1.90.0000.00717.46
8.1.80.0050.00317.43
8.1.70.0070.00317.41
8.1.60.0060.00317.50
8.1.50.0050.00317.43
8.1.40.0000.00917.50
8.1.30.0040.00417.69
8.1.20.0040.00417.70
8.1.10.0030.00517.45
8.1.00.0040.00417.40
8.0.300.0040.00420.09
8.0.290.0040.00416.75
8.0.280.0040.00318.37
8.0.270.0000.00817.27
8.0.260.0000.00618.38
8.0.250.0000.00716.98
8.0.240.0070.00016.98
8.0.230.0050.00316.88
8.0.220.0050.00216.93
8.0.210.0000.00716.88
8.0.200.0050.00316.95
8.0.190.0050.00216.98
8.0.180.0040.00416.83
8.0.170.0100.00016.96
8.0.160.0000.00716.78
8.0.150.0070.00016.80
8.0.140.0020.00516.84
8.0.130.0040.00415.09
8.0.120.0050.00316.84
8.0.110.0040.00416.89
8.0.100.0040.00416.86
8.0.90.0040.00416.85
8.0.80.0100.00216.90
8.0.70.0040.00316.86
8.0.60.0080.00016.85
8.0.50.0030.00516.79
8.0.30.0110.00416.98
8.0.20.0060.00816.96
8.0.10.0040.00417.09
8.0.00.0120.00516.85
7.4.330.0000.00515.55
7.4.320.0030.00316.50
7.4.300.0070.00016.50
7.4.290.0000.00716.61
7.4.280.0040.00416.60
7.4.270.0050.00216.48
7.4.260.0000.00716.48
7.4.250.0040.00316.61
7.4.240.0040.00316.60
7.4.230.0060.00216.50
7.4.220.0040.00416.54
7.4.210.0060.00716.60
7.4.200.0030.00416.52
7.4.190.0000.00716.47
7.4.180.0030.00516.63
7.4.160.0110.00516.49
7.4.150.0000.00716.55
7.4.140.0030.00316.32
7.4.130.0100.00316.48
7.4.120.0100.00316.49
7.4.110.0090.00316.52
7.4.100.0050.00716.61
7.4.90.0090.00316.47
7.4.80.0090.00317.88
7.4.70.0080.00616.39
7.4.60.0060.00816.42
7.4.50.0040.00716.34
7.4.40.0090.00416.34
7.4.30.0000.00616.34
7.4.20.0040.00416.52
7.4.10.0060.00316.28
7.4.00.0030.00815.80
7.3.330.0090.00514.83
7.3.320.0080.00414.80
7.3.310.0100.00416.29
7.3.300.0090.00516.34
7.3.290.0090.00516.28
7.3.280.0140.00516.34
7.3.270.0160.00416.37
7.3.260.0110.00916.36
7.3.250.0140.00716.35
7.3.240.0170.00716.39
7.3.230.0130.00516.28
7.3.220.0130.00916.16
7.3.210.0170.00316.29
7.3.200.0140.00816.30
7.3.190.0120.00816.34
7.3.180.0130.00616.31
7.3.170.0130.00716.51
7.3.160.0140.00416.22
7.3.150.0210.00616.22
7.3.140.0080.01416.22
7.3.130.0220.00016.32
7.3.120.0200.00016.34
7.3.110.0140.00716.25
7.3.100.0160.00816.02
7.3.90.0190.00616.67
7.3.80.0210.00316.35
7.3.70.0190.00816.41
7.3.60.0150.00715.64
7.3.50.0110.00915.64
7.3.40.0170.00315.49
7.3.30.0130.00515.68
7.3.20.0120.00716.34
7.3.10.0140.00616.51
7.3.00.0140.00616.42
7.2.340.0240.00216.33
7.2.330.0190.00216.56
7.2.320.0170.00716.46
7.2.310.0090.01016.55
7.2.300.0190.00316.49
7.2.290.0150.00816.45
7.2.280.0230.00416.43
7.2.270.0210.00316.18
7.2.260.0190.00416.39
7.2.250.0160.00616.26
7.2.240.0120.01216.44
7.2.230.0170.00716.32
7.2.220.0210.00416.30
7.2.210.0150.00716.45
7.2.200.0190.00616.68
7.2.190.0130.00415.60
7.2.180.0080.00915.79
7.2.170.0060.01015.67
7.2.160.0120.00315.62
7.2.150.0130.00416.77
7.2.140.0120.00316.62
7.2.130.0120.00416.65
7.2.120.0130.00316.85
7.2.110.0120.00716.72
7.2.100.0120.00516.67
7.2.90.0080.01116.65
7.2.80.0120.00716.72
7.2.70.0180.00516.54
7.2.60.0150.00216.60
7.2.50.0130.00416.71
7.2.40.0140.00616.71
7.2.30.0180.00516.67
7.2.20.0130.00516.81
7.2.10.0160.00616.77
7.2.00.0160.00316.78
7.1.330.0150.00317.42
7.1.320.0140.00417.42
7.1.310.0140.00317.29
7.1.300.0110.00615.60
7.1.290.0110.00615.67
7.1.280.0100.00715.67
7.1.270.0130.00215.56
7.1.260.0130.00215.51
7.1.250.0110.00515.57
7.1.240.0170.00017.06
7.1.230.0150.00317.34
7.1.220.0170.00017.15
7.1.210.0130.00517.22
7.1.200.0090.00917.19
7.1.190.0190.00017.27
7.1.180.0090.00917.33
7.1.170.0160.00217.36
7.1.160.0150.00317.35
7.1.150.0120.00617.27
7.1.140.0180.00017.27
7.1.130.0180.00017.26
7.1.120.0110.00717.29
7.1.110.0180.00017.14
7.1.100.0150.00317.28
7.1.90.0230.00017.20
7.1.80.0170.00417.13
7.1.70.0150.00317.19
7.1.60.0150.00317.20
7.1.50.0180.00017.21
7.1.40.0130.00517.24
7.1.30.0180.00017.41
7.1.20.0140.00517.27
7.1.10.0120.00517.23
7.1.00.0150.00217.18
5.4.160.0080.00017.13

preferences:
30.39 ms | 403 KiB | 5 Q