3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sort = array["a"=>"first","b"=>"second","c"=>"third"]; $sort = sort($sort); var_dump($sort);

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.320.1870.03719.07
5.4.310.0770.04019.23
5.4.300.0070.07319.22
5.4.290.0100.07318.84
5.4.280.1970.04319.11
5.4.270.2000.03718.87
5.4.260.1830.03719.04
5.4.250.1830.03319.21
5.4.240.2130.04719.23
5.4.230.2100.04319.23
5.4.220.1970.04019.25
5.4.210.1870.03318.83
5.4.200.1830.03019.08
5.4.190.1870.04019.05
5.4.180.0400.05319.08
5.4.170.0000.04318.83
5.4.160.0530.03719.18
5.4.150.1830.04019.06
5.4.140.1530.04016.50
5.4.130.2000.03716.34
5.4.120.1470.04016.29
5.4.110.1930.03316.36
5.4.100.2070.04016.42
5.4.90.2100.04716.59
5.4.80.2200.04016.41
5.4.70.2170.03716.51
5.4.60.1570.03716.38
5.4.50.1130.04716.52
5.4.40.0070.03316.53
5.4.30.0100.03016.43
5.4.20.1930.04316.34
5.4.10.1730.03316.50
5.4.00.1800.03715.74
5.3.290.1930.04014.70
5.3.280.1900.04314.61
5.3.270.2070.04314.66
5.3.260.1970.04014.59
5.3.250.2130.04314.59
5.3.240.1800.03714.70
5.3.230.1430.04014.43
5.3.220.1870.04314.51
5.3.210.0030.03714.44
5.3.200.0070.07314.41
5.3.190.0870.04014.44
5.3.180.1800.04014.44
5.3.170.1030.04014.66
5.3.160.1830.03714.51
5.3.150.1870.04314.46
5.3.140.1900.03314.65
5.3.130.2030.04314.39
5.3.120.1870.04714.38
5.3.110.1700.04014.39
5.3.100.2130.04313.91
5.3.90.1800.03713.96
5.3.80.0430.03714.06
5.3.70.0000.04013.89
5.3.60.0630.06013.78
5.3.50.1870.03313.99
5.3.40.1800.03713.89
5.3.30.1430.03713.78
5.3.20.1700.02713.54
5.3.10.0030.04313.45
5.3.00.0070.04713.73
5.2.170.0000.03311.04
5.2.160.0000.05711.05
5.2.150.0130.05710.98
5.2.140.0030.02711.19
5.2.130.0030.03310.94
5.2.120.0030.03011.15
5.2.110.0130.03011.04
5.2.100.0070.02311.04
5.2.90.0070.02311.15
5.2.80.0000.03310.98
5.2.70.0730.03711.04
5.2.60.0000.03310.90
5.2.50.0030.02710.93
5.2.40.0000.03711.16
5.2.30.0070.02710.81
5.2.20.0730.03010.97
5.2.10.1170.02010.77
5.2.00.0300.03710.63
5.1.60.0000.0239.86
5.1.50.0000.02710.12
5.1.40.0030.0239.95
5.1.30.1070.02710.45
5.1.20.1400.02710.26
5.1.10.1300.0209.95
5.1.00.0970.02310.04
5.0.50.0670.0178.71
5.0.40.0670.0138.42
5.0.30.0670.0278.20
5.0.20.0600.0208.17
5.0.10.0630.0208.14
5.0.00.0870.0378.28
4.4.90.0430.0177.81
4.4.80.0770.0177.81
4.4.70.0600.0177.81
4.4.60.0630.0137.71
4.4.50.0300.0137.71
4.4.40.0370.0277.71
4.4.30.0570.0177.71
4.4.20.0600.0107.71
4.4.10.0630.0107.71
4.4.00.0730.0277.71
4.3.110.0570.0177.71
4.3.100.0600.0177.71
4.3.90.0070.0177.71
4.3.80.0000.0237.71
4.3.70.0000.0137.71
4.3.60.0000.0137.71
4.3.50.0000.0137.71
4.3.40.0070.0237.71
4.3.30.0000.0207.71
4.3.20.0000.0177.71
4.3.10.0000.0137.71
4.3.00.0000.0137.71

preferences:
142.02 ms | 1394 KiB | 7 Q