3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = [ ['a' => 1, 'priority' => false], ['a' => 2, 'priority' => true], ['a' => 3, 'priority' => false], ['a' => 4, 'priority' => true], ]; usort ($list, static fn (array $a, array $b): int => (int)$b['priority'] <=> (int)$a['priority']); var_dump($list);

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.130.0040.00417.69
8.4.120.0130.00820.61
8.4.110.0090.01122.49
8.4.100.0100.01017.69
8.4.90.0140.00617.95
8.4.80.0050.00418.00
8.4.70.0060.00317.95
8.4.60.0080.00817.85
8.4.50.0050.00419.53
8.4.40.0070.01317.52
8.4.30.0160.00320.49
8.4.20.0100.01018.15
8.4.10.0050.00519.39
8.3.260.0080.00116.52
8.3.250.0050.00218.92
8.3.240.0090.01016.79
8.3.230.0150.00416.62
8.3.220.0090.00817.30
8.3.210.0110.00916.66
8.3.200.0130.00516.80
8.3.190.0120.00816.66
8.3.180.0050.00316.50
8.3.170.0070.01017.29
8.3.160.0040.01517.07
8.3.150.0110.00717.00
8.3.140.0030.01216.44
8.3.130.0080.00018.34
8.3.120.0080.00018.71
8.3.110.0030.00620.94
8.3.100.0090.00624.06
8.3.90.0070.01126.77
8.3.80.0030.00617.97
8.3.70.0150.00018.19
8.3.60.0180.00416.63
8.3.50.0150.00016.78
8.3.40.0060.00821.63
8.3.30.0080.00818.96
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0110.00820.60
8.2.280.0100.00518.61
8.2.270.0140.00317.27
8.2.260.0050.00316.60
8.2.250.0130.00318.78
8.2.240.0090.00017.41
8.2.230.0090.00622.58
8.2.220.0100.00037.54
8.2.210.0140.00426.77
8.2.200.0090.00016.88
8.2.190.0090.00616.58
8.2.180.0090.00918.50
8.2.170.0100.01018.96
8.2.160.0140.00022.96
8.2.150.0050.00225.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00021.11
8.2.110.0030.00619.33
8.2.100.0060.00619.57
8.2.90.0280.00317.50
8.2.80.0230.00817.42
8.2.70.0280.00417.42
8.2.60.0200.01117.42
8.2.50.0260.00417.50
8.2.40.0210.00717.42
8.2.30.0250.00417.42
8.2.20.0050.01019.38
8.2.10.0230.00417.42
8.2.00.0220.00717.42
8.1.330.0140.00520.46
8.1.320.0110.01017.97
8.1.310.0070.01118.39
8.1.300.0040.01117.92
8.1.290.0030.00930.84
8.1.280.0060.00925.92
8.1.270.0070.00024.66
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00622.41
8.1.230.0160.01217.42
8.1.220.0250.00317.42
8.1.210.0300.00317.42
8.1.200.0260.00317.42
8.1.190.0270.00017.42
8.1.180.0180.00917.42
8.1.170.0240.00417.42
8.1.160.0230.00317.42
8.1.150.0210.00717.42
8.1.140.0200.00817.42
8.1.130.0200.00517.42
8.1.120.0230.00317.42
8.1.110.0240.00317.42
8.1.100.0220.00517.42
8.1.90.0160.01217.42
8.1.80.0190.00917.42
8.1.70.0150.01217.42
8.1.60.0220.00717.42
8.1.50.0230.00317.50
8.1.40.0260.00017.42
8.1.30.0200.00717.42
8.1.20.0200.00818.68
8.1.10.0230.00417.50
8.1.00.0280.00317.42
8.0.300.0080.00517.42
8.0.290.0200.00817.42
8.0.280.0280.00017.42
8.0.270.0200.01018.37
8.0.260.0260.00317.42
8.0.250.0220.00717.42
8.0.240.0250.00117.42
8.0.230.0210.00617.42
8.0.220.0260.00017.42
8.0.210.0230.00518.49
8.0.200.0220.00817.42
8.0.190.0250.00317.42
8.0.180.0240.00617.42
8.0.170.0190.00817.42
8.0.160.0110.00618.45
8.0.150.0160.00318.37
8.0.140.0040.01418.36
8.0.130.0220.00317.42
8.0.120.0190.00717.42
8.0.110.0280.00317.42
8.0.100.0280.00717.42
8.0.90.0270.00017.42
8.0.80.0210.00817.42
8.0.70.0250.00317.42
8.0.60.0220.00617.42
8.0.50.0070.00718.30
8.0.30.0100.00318.49
8.0.20.0090.00318.33
8.0.10.0050.00818.60
7.3.290.0200.00624.66

preferences:
26.93 ms | 403 KiB | 5 Q