3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ ['company' => 'A', 'weight' => 4.6], ['company' => 'B', 'weight' => 1.7], ['company' => 'C', 'weight' => 3.7], ['company' => 'D', 'weight' => 13.2], ['company' => 'E', 'weight' => 1.85], ['company' => 'F', 'weight' => 2.07], ]; usort($arr, fn($a, $b) => $b['weight'] <=> $a['weight']); var_export($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.5.10.0070.00120.25
8.5.00.0130.00820.04
8.4.150.0020.00114.05
8.4.140.0130.00917.43
8.4.130.0140.00918.48
8.4.120.0100.01024.09
8.4.110.0040.00518.66
8.4.100.0090.01118.64
8.4.90.0110.00820.45
8.4.80.0110.00720.39
8.4.70.0090.01117.95
8.4.60.0120.00818.89
8.4.50.0130.00819.38
8.4.40.0130.00619.53
8.4.30.0100.01020.39
8.4.20.0120.00619.33
8.4.10.0130.00623.64
8.3.280.0100.01218.48
8.3.270.0130.00716.75
8.3.260.0050.00316.49
8.3.250.0090.01018.94
8.3.240.0090.01016.99
8.3.230.0110.00916.52
8.3.220.0060.00218.80
8.3.210.0050.00716.69
8.3.200.0060.00316.64
8.3.190.0100.00816.89
8.3.180.0050.00516.53
8.3.170.0030.01217.40
8.3.160.0160.00318.26
8.3.150.0090.00620.70
8.3.140.0100.00716.36
8.3.130.0040.00418.43
8.3.120.0080.00020.91
8.3.110.0090.00020.94
8.3.100.0030.01324.06
8.3.90.0040.01126.77
8.3.80.0120.00318.39
8.3.70.0140.00716.63
8.3.60.0140.00718.40
8.3.50.0110.00416.47
8.3.40.0070.00720.47
8.3.30.0140.00418.35
8.3.20.0050.00324.18
8.3.10.0050.00324.66
8.3.00.0110.00726.16
8.2.290.0130.00520.36
8.2.280.0060.01220.14
8.2.270.0180.00017.15
8.2.260.0040.00418.67
8.2.250.0000.00716.54
8.2.240.0040.00416.92
8.2.230.0060.00922.58
8.2.220.0040.00437.54
8.2.210.0070.00726.77
8.2.200.0060.00318.41
8.2.190.0130.00618.54
8.2.180.0130.00318.30
8.2.170.0090.00618.80
8.2.160.0070.00722.96
8.2.150.0070.00025.66
8.2.140.0070.00324.66
8.2.130.0080.00026.16
8.2.120.0070.00026.16
8.2.110.0080.00320.35
8.2.100.0080.00417.78
8.2.90.0000.00819.22
8.2.80.0050.00317.97
8.2.70.0000.00817.75
8.2.60.0060.00318.03
8.2.50.0090.00018.07
8.2.40.0000.00818.29
8.2.30.0000.00718.13
8.2.20.0170.00017.73
8.2.10.0090.00317.75
8.2.00.0130.00017.80
8.1.330.0100.00922.04
8.1.320.0080.01017.63
8.1.310.0070.00716.53
8.1.300.0040.01120.17
8.1.290.0030.00730.84
8.1.280.0110.00725.92
8.1.270.0070.00024.66
8.1.260.0000.00726.35
8.1.250.0060.00928.09
8.1.240.0090.00022.10
8.1.230.0080.00322.11
8.1.220.0030.00517.80
8.1.210.0080.00018.77
8.1.200.0080.00017.35
8.1.190.0080.00017.13
8.1.180.0000.00918.10
8.1.170.0050.00318.44
8.1.160.0030.00618.80
8.1.150.0170.00017.48
8.1.140.0070.00517.38
8.1.130.0110.00517.36
8.1.120.0080.00817.51
8.1.110.0140.00417.56
8.1.100.0140.00317.41
8.1.90.0090.00617.45
8.1.80.0100.00617.50
8.1.70.0060.01117.55
8.1.60.0130.00517.59
8.1.50.0130.00417.56
8.1.40.0090.00917.69
8.1.30.0180.00017.73
8.1.20.0150.00317.57
8.1.10.0150.00317.50
8.1.00.0140.00517.43
8.0.300.0020.00518.77
8.0.290.0020.00516.63
8.0.280.0030.00318.45
8.0.270.0020.00716.82
8.0.260.0100.00416.82
8.0.250.0100.00816.82
8.0.240.0120.00316.84
8.0.230.0000.01316.86
8.0.220.0150.00016.82
8.0.210.0030.00618.48
8.0.200.0060.00416.86
8.0.190.0020.00718.68
8.0.180.0080.00516.86
8.0.170.0040.01216.88
8.0.160.0100.00516.92
8.0.150.0100.00316.82
8.0.140.0110.00516.87
8.0.130.0100.00516.82
8.0.120.0110.00416.86
8.0.110.0120.00216.85
8.0.100.0100.00516.82
8.0.90.0160.00016.82
8.0.80.0070.00716.82
8.0.70.0080.00816.82
8.0.60.0080.00816.82
8.0.50.0060.00916.82
8.0.30.0120.00316.82
8.0.20.0150.00016.88
8.0.10.0090.00516.98

preferences:
111.11 ms | 403 KiB | 5 Q