3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = ['_', '@', ...range(-10, 10), ...range('A', 'F'), ...range('a', 'f') ]; usort( $data, fn($a, $b) => ($b < 0 <=> $a < 0) // prioritize negatives ?: (ctype_upper((string) $b) <=> ctype_upper((string) $a)) // prioritize uppercase letters ?: (is_int($a) <=> is_int($b)) // deprioritize integers ?: ($a <=> $b) // sort normally ); var_export($data);

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.120.0110.00820.44
8.4.110.0120.00922.68
8.4.100.0110.00919.19
8.4.90.0120.00924.38
8.4.80.0050.00418.81
8.4.70.0130.00519.02
8.4.60.0150.00618.85
8.4.50.0160.00717.95
8.4.40.0190.00319.32
8.4.30.0070.00718.71
8.4.20.0070.01317.82
8.4.10.0100.00723.76
8.3.250.0130.00418.85
8.3.240.0110.00716.70
8.3.230.0090.01016.62
8.3.220.0130.00518.82
8.3.210.0100.00616.54
8.3.200.0050.00316.69
8.3.190.0060.00217.30
8.3.180.0090.00916.50
8.3.170.0140.00416.89
8.3.160.0030.01616.56
8.3.150.0160.00317.03
8.3.140.0040.01120.66
8.3.130.0040.01516.74
8.3.120.0080.00019.04
8.3.110.0060.00320.94
8.3.100.0030.00618.43
8.3.90.0040.00426.77
8.3.80.0100.00016.50
8.3.70.0140.00716.58
8.3.60.0060.01216.50
8.3.50.0150.00616.62
8.3.40.0070.01019.70
8.3.30.0120.00618.84
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.290.0120.00720.58
8.2.280.0050.00518.69
8.2.270.0140.00317.29
8.2.260.0090.00917.21
8.2.250.0100.01016.62
8.2.240.0120.00317.01
8.2.230.0000.00922.58
8.2.220.0030.00524.06
8.2.210.0000.00926.77
8.2.200.0040.00416.25
8.2.190.0040.01116.75
8.2.180.0140.00716.63
8.2.170.0100.01018.99
8.2.160.0140.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00021.19
8.2.110.0030.00620.94
8.2.100.0080.00417.84
8.2.90.0000.00819.22
8.2.80.0040.00717.97
8.2.70.0070.00317.50
8.2.60.0080.00017.63
8.2.50.0130.00719.49
8.2.40.0180.00019.49
8.2.30.0120.00419.49
8.2.20.0170.00019.49
8.2.10.0120.00419.49
8.2.00.0130.00419.49
8.1.330.0110.00821.89
8.1.320.0130.00617.74
8.1.310.0090.00616.35
8.1.300.0030.01219.82
8.1.290.0040.00430.84
8.1.280.0140.00725.92
8.1.270.0040.00424.66
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0070.00319.13
8.1.230.0000.01118.95
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00817.36
8.1.190.0040.00417.76
8.1.180.0130.00319.49
8.1.170.0110.00419.49
8.1.160.0090.00619.49
8.1.150.0080.00819.49
8.1.140.0130.00319.49
8.1.130.0040.01219.49
8.1.120.0050.01019.49
8.1.110.0110.00519.49
8.1.100.0100.00619.49
8.1.90.0080.00819.49
8.1.80.0130.00419.49
8.1.70.0170.00019.49
8.1.60.0110.00719.49
8.1.50.0160.00219.49
8.1.40.0120.00519.49
8.1.30.0080.00819.49
8.1.20.0060.01219.49
8.1.10.0110.00919.49
8.1.00.0120.00619.49
8.0.300.0030.00618.77
8.0.290.0040.00416.75
8.0.280.0140.00319.49
8.0.270.0060.01019.49
8.0.260.0150.00319.49
8.0.250.0110.00619.49
8.0.240.0080.00819.49
8.0.230.0170.00019.49
8.0.220.0040.01219.49
8.0.210.0120.00619.49
8.0.200.0170.00019.49
8.0.190.0000.01619.49
8.0.180.0170.00019.49
8.0.170.0080.00819.49
8.0.160.0120.00619.49
8.0.150.0120.00419.49
8.0.140.0130.00019.49
8.0.130.0110.00519.49
8.0.120.0140.00319.49
8.0.110.0070.00719.49
8.0.100.0110.00619.49
8.0.90.0110.00519.49
8.0.80.0190.00219.49
8.0.70.0160.00019.49
8.0.60.0050.00919.49
8.0.50.0080.00819.49
8.0.30.0110.00719.49
8.0.20.0100.00719.49
8.0.10.0160.00019.49

preferences:
69.29 ms | 406 KiB | 6 Q