3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['customerName' => "John Dunk", 'customerPhone' => '5555555555', 'Difference' => 125.0], ['customerName' => "John Dunk", 'customerPhone' => '5555555555', 'Difference' => 192.0], ['customerName' => "John X", 'customerPhone' => '5555555555', 'Difference' => 225.0], ['customerName' => "John X", 'customerPhone' => '5555555555', 'Difference' => 1.0]]; array_multisort(array_column($array, 'Difference'), SORT_DESC, $array); $result = array_column($array, null, 'customerName'); print_r($result);

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.0030.01718.31
8.3.50.0070.00717.98
8.3.40.0120.00318.54
8.3.30.0110.00418.46
8.3.20.0030.00624.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.180.0140.00025.92
8.2.170.0100.01018.59
8.2.160.0130.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0070.00026.35
8.2.110.0030.00620.93
8.2.100.0040.00817.47
8.2.90.0000.00818.03
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0080.00017.38
8.2.50.0080.00018.05
8.2.40.0040.00419.94
8.2.30.0050.00317.87
8.2.20.0070.00018.11
8.2.10.0050.00219.22
8.2.00.0020.00519.16
8.1.280.0060.01025.92
8.1.270.0040.00423.99
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0040.00423.96
8.1.230.0040.00722.69
8.1.220.0060.00317.79
8.1.210.0000.00918.77
8.1.200.0060.00317.40
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0050.00318.53
8.1.160.0000.00718.77
8.1.150.0040.00418.78
8.1.140.0040.00418.78
8.1.130.0030.00320.11
8.1.120.0000.00817.45
8.1.110.0040.00417.34
8.1.100.0040.00417.40
8.1.90.0000.00717.34
8.1.80.0050.00517.35
8.1.70.0000.00717.27
8.1.60.0050.00317.52
8.1.50.0000.00717.48
8.1.40.0040.00417.34
8.1.30.0050.00317.59
8.1.20.0000.00817.48
8.1.10.0030.00617.52
8.1.00.0060.00317.45
8.0.300.0030.00520.09
8.0.290.0000.00716.63
8.0.280.0030.00318.29
8.0.270.0070.00017.94
8.0.260.0000.00720.30
8.0.250.0000.00716.75
8.0.240.0060.00316.90
8.0.230.0060.00016.79
8.0.220.0040.00416.74
8.0.210.0030.00316.76
8.0.200.0000.00716.86
8.0.190.0040.00416.90
8.0.180.0000.00716.71
8.0.170.0000.00816.88
8.0.160.0070.00016.70
8.0.150.0040.00416.81
8.0.140.0000.00716.77
8.0.130.0000.00513.29
8.0.120.0030.00516.74
8.0.110.0040.00416.76
8.0.100.0030.00316.81
8.0.90.0050.00316.86
8.0.80.0050.01416.78
8.0.70.0070.00016.72
8.0.60.0070.00016.66
8.0.50.0040.00416.82
8.0.30.0070.01017.05
8.0.20.0080.01216.91
8.0.10.0050.00316.73
8.0.00.0150.00816.60
7.4.330.0000.00515.55
7.4.320.0070.00016.34
7.4.300.0030.00316.46
7.4.290.0050.00316.48
7.4.280.0000.00716.42
7.4.270.0030.00716.38
7.4.260.0020.00213.27
7.4.250.0030.00316.41
7.4.240.0040.00416.45
7.4.230.0000.00716.65
7.4.220.0020.00616.49
7.4.210.0060.01216.54
7.4.200.0000.00816.63
7.4.130.0100.00716.43
7.4.120.0070.01016.50
7.4.110.0100.01316.42
7.4.100.0060.01016.52
7.4.90.0130.00316.23
7.4.80.0100.00916.00
7.4.70.0040.01516.07
7.4.60.0110.01416.19
7.4.50.0120.00616.10
7.4.40.0150.00316.04
7.4.30.0070.01716.22
7.4.20.0090.00916.19
7.4.10.0070.01016.14
7.4.00.0080.00815.94
7.3.330.0070.00016.11
7.3.320.0000.00513.08
7.3.310.0070.00016.20
7.3.300.0030.00316.12
7.3.290.0120.00416.13
7.3.280.0100.01016.13
7.3.260.0080.00816.11
7.3.230.0120.00316.27
7.3.210.0170.00316.29
7.3.200.0120.00616.14
7.3.190.0090.00615.91
7.3.180.0120.00616.30
7.3.170.0150.00416.09
7.3.160.0060.01216.04
7.3.150.0110.00716.20
7.3.140.0060.01216.06
7.3.130.0060.00916.00
7.3.120.0070.01116.00
7.3.110.0090.01215.85
7.3.100.0070.01316.21
7.3.90.0100.00716.16
7.3.80.0130.00615.99
7.3.70.0070.01016.18
7.3.60.0030.01416.15
7.3.50.0080.01216.16
7.3.40.0100.00715.98
7.3.30.0060.01216.21
7.3.20.0070.01116.11
7.3.10.0100.00716.10
7.3.00.0090.00916.35
7.2.330.0070.01016.61
7.2.320.0060.01216.41
7.2.310.0140.00416.06
7.2.300.0060.01016.20
7.2.290.0030.01716.38
7.2.280.0060.01316.22
7.2.270.0110.00616.05
7.2.260.0070.01016.55
7.2.250.0140.00716.48
7.2.240.0100.01316.43
7.2.230.0120.01216.51
7.2.220.0090.01216.19
7.2.210.0030.01516.09
7.2.200.0090.00916.15
7.2.190.0110.00716.09
7.2.180.0080.01116.20
7.2.170.0090.00915.93
7.2.160.0060.01216.08
7.2.150.0150.00416.43
7.2.140.0100.01016.20
7.2.130.0130.01316.39
7.2.120.0140.00416.23
7.2.110.0060.01216.28
7.2.100.0060.01216.25
7.2.90.0070.01016.14
7.2.80.0120.00916.14
7.2.70.0140.00316.24
7.2.60.0100.01016.13
7.2.50.0080.01116.27
7.2.40.0120.00616.50
7.2.30.0070.01116.12
7.2.20.0100.00716.19
7.2.10.0090.00616.14
7.2.00.0180.00916.41

preferences:
41.54 ms | 400 KiB | 5 Q