3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=array('sdfsf','sfddsf','sssdf','324s','gf'); usort($a, function($s1, $s2) { return strnatcmp($s1, $s2); }));

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)
5.6.80.0030.08320.51
5.5.240.0070.07320.18
5.4.400.0270.04718.76
5.4.390.0170.05718.70
5.4.380.0170.05718.56
5.4.370.0170.07318.50
5.4.360.0130.07718.59
5.4.350.0230.08018.55
5.4.340.0270.07318.69
5.4.320.0300.05718.77
5.4.310.0430.05018.82
5.4.300.0230.07718.74
5.4.290.0170.08018.81
5.4.280.0270.07718.76
5.4.270.0430.06018.71
5.4.260.0270.06318.41
5.4.250.0330.05718.47
5.4.240.0270.07318.76
5.4.230.0230.05718.71
5.4.220.0270.05318.53
5.4.210.0130.07018.47
5.4.200.0270.05716.56
5.4.190.0230.06718.45
5.4.180.0230.05718.80
5.4.170.0170.07318.80
5.4.160.0230.06018.49
5.4.150.0230.07718.36
5.4.140.0300.06316.31
5.4.130.0300.04316.18
5.4.120.0200.05316.26
5.4.110.0330.04716.49
5.4.100.0200.06716.26
5.4.90.0200.06316.18
5.4.80.0130.07016.42
5.4.70.0230.06316.25
5.4.60.0200.06316.41
5.4.50.0270.04716.27
5.4.40.0270.05316.17
5.4.30.0300.06316.41
5.4.20.0130.08316.28
5.4.10.0230.05716.26
5.4.00.0170.06015.75
5.3.290.0200.07014.72
5.3.280.0170.06314.71
5.3.270.0230.05714.66
5.3.260.0130.06714.71
5.3.250.0200.05714.64
5.3.240.0330.06714.59
5.3.230.0230.05314.63
5.3.220.0300.06714.56
5.3.210.0270.07314.77
5.3.200.0370.06014.59
5.3.190.0270.06314.55
5.3.180.0100.06714.67
5.3.170.0230.05314.67
5.3.160.0270.06314.60
5.3.150.0270.05714.66
5.3.140.0200.05714.72
5.3.130.0200.05714.75
5.3.120.0330.04314.65
5.3.110.0230.05014.68
5.3.100.0200.05714.17
5.3.90.0270.07314.04
5.3.80.0200.05014.05
5.3.70.0200.05314.05
5.3.60.0200.06314.05
5.3.50.0200.08013.98
5.3.40.0430.05714.07
5.3.30.0170.06014.04
5.3.20.0170.05313.81
5.3.10.0270.04713.78
5.3.00.0230.04713.74
5.2.170.0070.05311.09
5.2.160.0200.04011.15
5.2.150.0200.04011.12
5.2.140.0270.05011.05
5.2.130.0170.04311.02
5.2.120.0170.04711.07
5.2.110.0130.04311.14
5.2.100.0100.04311.16
5.2.90.0170.04011.14
5.2.80.0200.04711.03
5.2.70.0170.05311.04
5.2.60.0200.05011.13
5.2.50.0230.03710.96
5.2.40.0130.04711.05
5.2.30.0130.04710.93
5.2.20.0200.03710.95
5.2.10.0100.04710.98
5.2.00.0070.04710.82
5.1.60.0130.04010.50
5.1.50.0200.03010.50
5.1.40.0130.03310.50
5.1.30.0130.04310.50
5.1.20.0200.03310.50
5.1.10.0200.03710.50
5.1.00.0070.05010.50
5.0.50.0100.03010.50
5.0.40.0170.02710.50
5.0.30.0100.04710.50
5.0.20.0070.03710.50
5.0.10.0100.03310.50
5.0.00.0070.05710.50
4.4.90.0070.03010.50
4.4.80.0070.02310.50
4.4.70.0130.01710.50
4.4.60.0070.02710.50
4.4.50.0070.03010.50
4.4.40.0130.04010.50
4.4.30.0200.02010.50
4.4.20.0070.02310.50
4.4.10.0070.02310.50
4.4.00.0100.04310.50
4.3.110.0000.03710.50
4.3.100.0030.02710.50
4.3.90.0100.02310.50
4.3.80.0070.03710.50
4.3.70.0130.02710.50
4.3.60.0030.03310.50
4.3.50.0100.02710.50
4.3.40.0100.03010.50
4.3.30.0070.02010.50
4.3.20.0100.01710.50
4.3.10.0100.02010.50
4.3.00.0000.0237.20

preferences:
142.26 ms | 1394 KiB | 7 Q