3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( array( "title" => "Another title", "date" => "Fri, 17 Jun 2011 08:55:57 +0200" ), array( "title" => "My title", "date" => "Mon, 16 Jun 2010 06:55:57 +0200" ) ); usort($data, function sortFunction( $a, $b ) { return strtotime($a["date"]) - strtotime($b["date"]); }); var_dump($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)
5.4.320.0030.07318.98
5.4.310.0070.06019.16
5.4.300.0030.04318.83
5.4.290.0000.07318.97
5.4.280.0000.07018.82
5.4.270.0000.07719.18
5.4.260.0070.07718.97
5.4.250.0030.07319.12
5.4.240.0030.07719.05
5.4.230.0070.06718.98
5.4.220.0070.07319.07
5.4.210.0030.04318.93
5.4.200.0030.07319.23
5.4.190.0030.07318.82
5.4.180.0030.05318.82
5.4.170.0030.04319.07
5.4.160.0070.06719.21
5.4.150.0100.04319.16
5.4.140.0100.06016.43
5.4.130.0070.03316.26
5.4.120.0000.03316.29
5.4.110.0030.03316.19
5.4.100.0030.07316.54
5.4.90.0030.04716.50
5.4.80.0000.07316.33
5.4.70.0030.03716.38
5.4.60.0000.07316.38
5.4.50.0030.05016.41
5.4.40.0000.06716.23
5.4.30.0100.03316.41
5.4.20.0000.04716.53
5.4.10.0000.04016.50
5.4.00.0000.03315.76
5.3.290.0030.06014.50
5.3.280.0100.03014.68
5.3.270.0100.06714.54
5.3.260.0000.07014.59
5.3.250.0030.04314.46
5.3.240.0000.04714.45
5.3.230.0130.06014.44
5.3.220.0000.05014.66
5.3.210.0030.05714.58
5.3.200.0030.05014.57
5.3.190.0030.03714.51
5.3.180.0030.07314.66
5.3.170.0070.05014.61
5.3.160.0070.04014.40
5.3.150.0030.03714.40
5.3.140.0030.04314.39
5.3.130.0070.06314.56
5.3.120.0000.04014.48
5.3.110.0000.04314.42
5.3.100.0070.06313.88
5.3.90.0030.04313.89
5.3.80.0030.07713.96
5.3.70.0030.05013.92
5.3.60.0000.05713.80
5.3.50.0030.04013.71
5.3.40.0070.06313.85
5.3.30.0030.05713.92
5.3.20.0030.04313.67
5.3.10.0030.06313.64
5.3.00.0000.04013.59
5.2.170.0030.03710.99
5.2.160.0030.03011.05
5.2.150.0070.02711.08
5.2.140.0070.06010.98
5.2.130.0100.05310.94
5.2.120.0000.03011.04
5.2.110.0030.06711.14
5.2.100.0000.03010.95
5.2.90.0030.04011.14
5.2.80.0070.06010.94
5.2.70.0030.02710.95
5.2.60.0070.06010.98
5.2.50.0000.04310.87
5.2.40.0030.03010.83
5.2.30.0070.06310.98
5.2.20.0000.05711.04
5.2.10.0100.04010.82
5.2.00.0030.03010.63
5.1.60.0030.0279.93
5.1.50.0030.0239.85
5.1.40.0000.02310.06
5.1.30.0070.02710.49
5.1.20.0000.03310.30
5.1.10.0100.0509.95
5.1.00.0000.0479.95
5.0.50.0030.0208.55
5.0.40.0100.0378.53
5.0.30.0070.0608.08
5.0.20.0000.0308.07
5.0.10.0030.0238.25
5.0.00.0030.0338.20
4.4.90.0030.0137.51
4.4.80.0000.0207.51
4.4.70.0000.0177.51
4.4.60.0030.0277.51
4.4.50.0000.0337.51
4.4.40.0030.0437.51
4.4.30.0030.0177.51
4.4.20.0100.0237.51
4.4.10.0030.0237.51
4.4.00.0030.0237.51
4.3.110.0030.0207.51
4.3.100.0000.0137.51
4.3.90.0000.0137.51
4.3.80.0000.0237.51
4.3.70.0000.0207.51
4.3.60.0030.0137.51
4.3.50.0000.0177.51
4.3.40.0030.0577.51
4.3.30.0030.0337.51
4.3.20.0100.0137.51
4.3.10.0030.0207.51
4.3.00.0070.0237.51

preferences:
138.39 ms | 1394 KiB | 7 Q