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 ?: (is_int($a) <=> is_int($b)) // deprioritize integers ?: (ltrim($a, 'A..Z') <=> ltrim($b, 'A..Z')) // prioritize uppercase letters ?: ($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.5.10.0110.00520.09
8.5.00.0100.01220.31
8.4.160.0100.01223.83
8.4.150.0030.00014.05
8.4.140.0130.00817.43
8.4.130.0120.00617.57
8.4.120.0130.00720.61
8.4.110.0100.00822.38
8.4.100.0120.00917.82
8.4.90.0120.00818.58
8.4.80.0090.01219.67
8.4.70.0080.01217.82
8.4.60.0130.00718.87
8.4.50.0050.00617.70
8.4.40.0040.01122.36
8.4.30.0030.01618.75
8.4.20.0100.01018.01
8.4.10.0040.00424.00
8.3.280.0090.01120.19
8.3.270.0120.00816.35
8.3.260.0130.00516.71
8.3.250.0110.00818.92
8.3.240.0060.00316.66
8.3.230.0090.00716.54
8.3.220.0090.00917.08
8.3.210.0090.00416.60
8.3.200.0040.00516.75
8.3.190.0100.00917.29
8.3.180.0060.00416.64
8.3.170.0160.00319.01
8.3.160.0150.00316.69
8.3.150.0090.00616.89
8.3.140.0190.00019.02
8.3.130.0030.00618.44
8.3.120.0030.00620.70
8.3.110.0110.00720.94
8.3.100.0100.01016.69
8.3.90.0090.00926.77
8.3.80.0030.00617.97
8.3.70.0110.00718.13
8.3.60.0110.01116.63
8.3.50.0140.00716.68
8.3.40.0070.01120.00
8.3.30.0140.00018.82
8.3.20.0050.00324.18
8.3.10.0040.00424.66
8.3.00.0030.00626.16
8.2.290.0040.00420.80
8.2.280.0060.00218.54
8.2.270.0130.00618.48
8.2.260.0110.00418.62
8.2.250.0040.00416.80
8.2.240.0080.00417.42
8.2.230.0040.00422.58
8.2.220.0060.00324.06
8.2.210.0060.00326.77
8.2.200.0000.00916.38
8.2.190.0070.01116.63
8.2.180.0070.01016.75
8.2.170.0070.00719.08
8.2.160.0070.01322.96
8.2.150.0030.00525.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0070.00022.26
8.2.110.0060.00320.97
8.2.100.0060.00617.77
8.2.90.0000.00818.22
8.2.80.0050.00318.13
8.2.70.0040.00417.63
8.2.60.0050.00317.63
8.2.50.0140.00519.49
8.2.40.0110.00719.49
8.2.30.0080.00819.49
8.2.20.0060.00319.49
8.2.10.0120.00419.49
8.2.00.0120.00519.49
8.1.330.0110.00721.94
8.1.320.0110.00916.02
8.1.310.0080.00016.87
8.1.300.0060.00319.75
8.1.290.0040.00430.84
8.1.280.0100.00725.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00323.77
8.1.230.0040.00822.75
8.1.220.0030.00617.74
8.1.210.0000.01018.77
8.1.200.0060.00317.35
8.1.190.0080.00017.25
8.1.180.0090.00719.49
8.1.170.0080.00819.49
8.1.160.0130.00319.49
8.1.150.0170.00019.49
8.1.140.0170.00019.49
8.1.130.0100.00519.49
8.1.120.0110.00519.49
8.1.110.0160.00219.49
8.1.100.0120.00419.49
8.1.90.0120.00619.49
8.1.80.0080.00819.49
8.1.70.0140.00319.49
8.1.60.0160.00419.49
8.1.50.0140.00419.49
8.1.40.0070.01119.49
8.1.30.0090.00919.49
8.1.20.0180.00019.49
8.1.10.0130.00419.49
8.1.00.0140.00619.49
8.0.300.0040.00419.89
8.0.290.0000.00816.75
8.0.280.0140.00319.49
8.0.270.0100.00619.49
8.0.260.0120.00519.49
8.0.250.0000.01619.49
8.0.240.0150.00019.49
8.0.230.0150.00419.49
8.0.220.0140.00419.49
8.0.210.0080.00819.49
8.0.200.0130.00419.49
8.0.190.0110.00519.49
8.0.180.0110.00619.49
8.0.170.0160.00019.49
8.0.160.0180.00019.49
8.0.150.0110.00519.49
8.0.140.0110.00519.49
8.0.130.0070.01119.49
8.0.120.0160.00019.49
8.0.110.0100.00719.49
8.0.100.0080.00819.49
8.0.90.0170.00019.49
8.0.80.0110.00519.49
8.0.70.0150.00019.49
8.0.60.0160.00019.49
8.0.50.0130.00319.49
8.0.30.0130.00319.49
8.0.20.0170.00019.49
8.0.10.0110.00619.49

preferences:
37.4 ms | 403 KiB | 5 Q