3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['item1' => 80], ['item2' => 25], ['item3' => 85], ]; usort($array, fn($a, $b) => current($a) <=> current($b)); 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.140.0130.00817.54
8.4.130.0130.00618.45
8.4.120.0120.00824.11
8.4.110.0110.01020.55
8.4.100.0160.00517.45
8.4.90.0090.00618.63
8.4.80.0070.00217.55
8.4.70.0130.00717.62
8.4.60.0030.00520.25
8.4.50.0120.01018.64
8.4.40.0090.00922.16
8.4.30.0080.00018.55
8.4.20.0130.00620.52
8.4.10.0130.00623.58
8.3.270.0100.00916.25
8.3.260.0110.00916.43
8.3.250.0120.00618.79
8.3.240.0130.00517.15
8.3.230.0050.00416.50
8.3.220.0130.00517.28
8.3.210.0100.00816.70
8.3.200.0060.00216.57
8.3.190.0050.00517.05
8.3.180.0110.00717.09
8.3.170.0040.00418.81
8.3.160.0070.00716.56
8.3.150.0040.01517.21
8.3.140.0150.00416.45
8.3.130.0070.00718.48
8.3.120.0000.00819.04
8.3.110.0160.00018.43
8.3.100.0050.01124.06
8.3.90.0160.00326.77
8.3.80.0090.00018.30
8.3.70.0120.00316.50
8.3.60.0100.01018.49
8.3.50.0070.01418.53
8.3.40.0170.00320.00
8.3.30.0070.00718.57
8.3.20.0050.00324.18
8.3.10.0050.00324.66
8.3.00.0000.00926.16
8.2.290.0110.00720.44
8.2.280.0110.00818.50
8.2.270.0070.01117.03
8.2.260.0090.00918.08
8.2.250.0140.00016.70
8.2.240.0060.00317.13
8.2.230.0130.00620.94
8.2.220.0030.00737.54
8.2.210.0130.00626.77
8.2.200.0060.00318.16
8.2.190.0060.01516.63
8.2.180.0090.00616.38
8.2.170.0130.00619.02
8.2.160.0090.00622.96
8.2.150.0000.00825.66
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0060.00322.03
8.2.110.0070.00321.14
8.2.100.0040.00717.91
8.2.90.0080.00017.97
8.2.80.0030.00619.66
8.2.70.0000.00817.50
8.2.60.0000.00817.38
8.2.50.0070.01119.49
8.2.40.0120.00419.49
8.2.30.0170.00019.49
8.2.20.0060.01219.49
8.2.10.0080.00819.49
8.2.00.0000.01719.49
8.1.330.0060.00221.98
8.1.320.0070.00316.00
8.1.310.0000.00817.67
8.1.300.0120.00318.34
8.1.290.0090.00030.84
8.1.280.0120.00325.92
8.1.270.0000.00920.60
8.1.260.0040.00426.35
8.1.250.0100.00728.09
8.1.240.0090.00022.42
8.1.230.0040.00722.13
8.1.220.0060.00317.78
8.1.210.0030.00518.77
8.1.200.0060.00617.35
8.1.190.0040.00417.35
8.1.180.0090.00919.49
8.1.170.0180.00019.49
8.1.160.0150.00319.49
8.1.150.0140.00519.49
8.1.140.0050.01119.49
8.1.130.0120.00519.49
8.1.120.0120.00619.49
8.1.110.0110.00519.49
8.1.100.0140.00319.49
8.1.90.0070.01019.49
8.1.80.0120.00819.49
8.1.70.0110.00519.49
8.1.60.0160.00319.49
8.1.50.0150.00419.49
8.1.40.0080.01119.49
8.1.30.0150.00419.49
8.1.20.0110.00719.49
8.1.10.0110.00619.49
8.1.00.0190.00019.49
8.0.300.0000.00719.83
8.0.290.0000.00916.75
8.0.280.0140.00319.49
8.0.270.0120.00419.49
8.0.260.0120.00519.49
8.0.250.0100.00519.49
8.0.240.0100.00719.49
8.0.230.0090.00919.49
8.0.220.0140.00319.49
8.0.210.0130.00319.49
8.0.200.0080.00819.49
8.0.190.0140.00219.49
8.0.180.0130.00419.49
8.0.170.0140.00519.49
8.0.160.0150.00319.49
8.0.150.0000.01619.49
8.0.140.0120.00319.49
8.0.130.0110.00419.49
8.0.120.0060.01119.49
8.0.110.0160.00019.49
8.0.100.0130.00319.49
8.0.90.0120.00619.49
8.0.80.0110.00519.49
8.0.70.0130.00619.49
8.0.60.0050.01119.49
8.0.50.0100.00719.49
8.0.30.0140.00319.49
8.0.20.0120.00219.49
8.0.10.0130.00319.49

preferences:
28.88 ms | 403 KiB | 5 Q