3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ref = "1362047520"; $array = array ( 0 => 1362047520 1 => 1362042420 2 => 1362041280 3 => 1362038220 4 => 1362037680 5 => 1362037020 6 => 1362033720 7 => 1362033360 8 => 1362031620 9 => 1362030840 10 => 1362019380 11 => 1362016860 12 => 1361997660 13 => 1361996940 14 => 1361992500 15 => 1361988720 16 => 1361977740 17 => 1361964300 18 => 1361963460 19 => 1361959800 20 => 1361959560 21 => 1361955000 22 => 1361951700 23 => 1361951220 24 => 1361951100 25 => 1361949000 26 => 1361947500 27 => 1361946240 28 => 1361940180 29 => 1361906940 ); var_dump(max($array));

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.120.0000.06316.37
5.4.110.0070.07316.43
5.4.100.0030.06716.59
5.4.90.0030.07716.41
5.4.80.0070.05016.54
5.4.70.0070.07316.37
5.4.60.0130.05016.46
5.4.50.0170.06716.44
5.4.40.0100.07016.34
5.4.30.0130.04716.42
5.4.20.0100.06316.26
5.4.10.0030.03716.20
5.4.00.0100.07315.79
5.3.220.0100.07014.42
5.3.210.0170.06714.51
5.3.200.0100.07314.49
5.3.190.0100.07714.42
5.3.180.0130.06014.52
5.3.170.0030.07714.48
5.3.160.0070.07314.53
5.3.150.0030.08014.38
5.3.140.0070.04314.53
5.3.130.0070.08314.39
5.3.120.0030.08014.51
5.3.110.0000.05014.50
5.3.100.0100.07013.95
5.3.90.0030.06013.99
5.3.80.0100.06013.98
5.3.70.0030.06713.79
5.3.60.0170.06713.77
5.3.50.0030.05013.88
5.3.40.0100.06313.73
5.3.30.0030.07313.68
5.3.20.0100.07013.46
5.3.10.0070.03713.60
5.3.00.0070.05313.55

preferences:
140.67 ms | 1394 KiB | 7 Q