3v4l.org

run code in 300+ PHP versions simultaneously
<?php function cmp( $a, $b ) { if( $a->weight == $b->weight ){ return 0 ; } return ($a->weight < $b->weight) ? -1 : 1; } unsortedObjectArray = [1,3,5,77,37,523,243,546,14,3,4,6,5] usort($unsortedObjectArray,'cmp');

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.4.340.0270.08019.14
5.4.320.0170.07718.98
5.4.310.0200.07719.22
5.4.300.0170.04719.13
5.4.290.0270.07019.09
5.4.280.0300.06719.09
5.4.270.0200.05018.94
5.4.260.0200.03719.08
5.4.250.0170.04019.23
5.4.240.0300.06719.18
5.4.230.0170.05019.08
5.4.220.0300.06718.96
5.4.210.0230.06019.24
5.4.200.0270.03318.86
5.4.190.0170.04019.12
5.4.180.0170.03718.86
5.4.170.0200.03318.93
5.4.160.0170.04019.07
5.4.150.0130.04019.20
5.4.140.0130.04016.52
5.4.130.0200.03316.39
5.4.120.0170.03316.49
5.4.110.0270.02716.37
5.4.100.0130.04016.54
5.4.90.0170.03316.45
5.4.80.0200.03016.52
5.4.70.0200.03716.26
5.4.60.0100.04716.33
5.4.50.0230.04016.54
5.4.40.0100.04716.52
5.4.30.0170.03716.43
5.4.20.0130.04316.45
5.4.10.0230.03316.51
5.4.00.0130.03715.73
5.3.290.0270.08014.82
5.3.280.0370.06314.57
5.3.270.0230.03314.76
5.3.260.0170.03714.51
5.3.250.0200.03014.52
5.3.240.0130.04014.68
5.3.230.0200.03314.68
5.3.220.0300.05014.64
5.3.210.0130.05014.59
5.3.200.0200.03014.79
5.3.190.0130.04014.46
5.3.180.0170.03314.64
5.3.170.0230.03714.58
5.3.160.0230.04014.54
5.3.150.0230.03014.64
5.3.140.0130.03714.67
5.3.130.0130.04014.45
5.3.120.0130.04014.66
5.3.110.0270.03714.55
5.3.100.0230.03014.26
5.3.90.0200.03314.18
5.3.80.0100.04313.91
5.3.70.0270.02713.91
5.3.60.0170.03714.02
5.3.50.0100.04013.95
5.3.40.0200.03313.96
5.3.30.0170.04313.83
5.3.20.0270.03013.62
5.3.10.0200.04313.74
5.3.00.0200.06713.71
5.2.170.0170.02712.66
5.2.160.0100.03012.66
5.2.150.0130.03012.66
5.2.140.0270.05312.66
5.2.130.0230.05712.66
5.2.120.0170.05712.66
5.2.110.0230.02312.66
5.2.100.0230.05712.66
5.2.90.0300.03012.66
5.2.80.0270.05712.66
5.2.70.0200.04312.66
5.2.60.0200.06012.66
5.2.50.0130.06312.66
5.2.40.0200.04712.66
5.2.30.0170.06012.66
5.2.20.0130.04712.66
5.2.10.0270.03712.66
5.2.00.0200.06012.66
5.1.60.0200.03712.66
5.1.50.0170.05312.66
5.1.40.0170.05012.66
5.1.30.0200.05312.66
5.1.20.0230.04712.66
5.1.10.0070.06012.66
5.1.00.0200.04312.66
5.0.50.0070.04712.66
5.0.40.0100.03012.66
5.0.30.0170.05012.66
5.0.20.0030.02312.66
5.0.10.0130.04312.66
5.0.00.0200.05712.66
4.4.90.0100.03312.66
4.4.80.0100.03312.66
4.4.70.0070.02712.66
4.4.60.0130.03712.66
4.4.50.0100.02712.66
4.4.40.0030.02712.66
4.4.30.0130.03312.66
4.4.20.0070.03712.66
4.4.10.0100.03312.66
4.4.00.0030.03712.66
4.3.110.0100.02312.66
4.3.100.0070.02312.66
4.3.90.0130.03012.66
4.3.80.0070.02712.66
4.3.70.0170.00712.66
4.3.60.0070.02012.66
4.3.50.0100.03012.66
4.3.40.0130.05012.66
4.3.30.0000.03312.66
4.3.20.0100.03012.66
4.3.10.0030.04012.66
4.3.00.0030.01712.66

preferences:
133.06 ms | 1398 KiB | 7 Q