3v4l.org

run code in 300+ PHP versions simultaneously
<?php array(28) { [0]=> array(3) { ["name"]=> string(9) "Lise Toit" ["birthday"]=> string(5) "May 2" ["age"]=> int(23) } [1]=> array(3) { ["name"]=> string(12) "Arno Du Toit" ["birthday"]=> string(8) "April 17" ["age"]=> int(22) } [2]=> array(3) { ["name"]=> string(11) "Carla Bruni" ["birthday"]=> string(8) "April 24" ["age"]=> int(21) } [3]=> array(3) { ["name"]=> string(13) "Marto Hanekom" ["birthday"]=> string(8) "April 19" ["age"]=> int(20) } } $sort_dates = function($a, $b) { $a = strtotime($a['birthday']); $b = strtotime($b['birthday']); if ($a == $b) { return 0; } return ($a < $b) ? -1 : 1; }; usort($upcoming, $sort_dates);

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.140.3870.03716.45
5.4.130.3970.02716.46
5.4.120.3730.03716.44
5.4.110.3500.02316.35
5.4.100.3800.03716.25
5.4.90.3600.03316.52
5.4.80.3930.03716.46
5.4.70.3970.03016.50
5.4.60.3870.03716.61
5.4.50.4630.03716.55
5.4.40.3270.04016.45
5.4.30.3270.03716.48
5.4.20.3230.03316.32
5.4.10.2930.03016.53
5.4.00.2930.02315.85
5.3.240.3600.03714.50
5.3.230.4130.03714.58
5.3.220.3670.03314.50
5.3.210.3770.03714.50
5.3.200.3630.04014.49
5.3.190.3900.03714.53
5.3.180.4000.03314.38
5.3.170.3870.03714.36
5.3.160.3970.03314.65
5.3.150.4500.03314.53
5.3.140.4030.04014.38
5.3.130.3700.04014.45
5.3.120.3300.03714.51
5.3.110.3430.03714.34
5.3.100.3300.03713.97
5.3.90.3500.03313.90
5.3.80.3030.04013.98
5.3.70.3300.03314.12
5.3.60.3300.03713.93
5.3.50.3570.04014.04
5.3.40.3130.04013.87
5.3.30.3500.03713.74
5.3.20.3530.03013.65
5.3.10.3800.03313.47
5.3.00.3770.03713.57

preferences:
140.32 ms | 1386 KiB | 7 Q