3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [3, 1, 2]; $b = [4, 5, 6]; usort($a, function() { usort($b, function() { return 0; } return 1; });

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)
7.0.20.0270.05720.24
7.0.10.0100.07020.05
7.0.00.0130.05320.18
5.6.170.0230.05720.51
5.6.160.0070.07320.57
5.6.150.0100.03318.19
5.6.140.0070.07318.18
5.6.130.0030.09318.25
5.6.120.0070.05720.90
5.6.110.0070.04720.99
5.6.100.0100.06020.98
5.6.90.0130.07721.13
5.6.80.0100.07720.38
5.5.310.0200.05320.51
5.5.300.0070.07717.98
5.5.290.0130.07717.96
5.5.280.0100.08720.89
5.5.270.0030.04020.88
5.5.260.0170.08020.65
5.5.250.0130.05720.70
5.5.240.0270.06020.13

preferences:
147.34 ms | 939 KiB | 8 Q