3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testArray = array(-1, 0, 1, December, February 2014, "now"); $unixArray = array(); for($i = 0, $size = count($testArray); $i < $size; ++$i) { $testDate = $testArray[$i]; $unixArray[$i] = strtotime($testDate); } for($i = 0, $size = count($unixArray); $i < $size; ++$i) { $unixDate = $unixArray[$i]; echo $testDate, "\n"; // echo $unixDate, "\n"; echo date('l H\:iO',$unixDate), "\n"; // echo date('r',$unixDate), "\n"; echo "\n"; }

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.230.0070.03812.36
5.4.220.0070.03712.36
5.4.210.0070.03612.36
5.4.200.0080.03612.36
5.4.190.0080.04012.36
5.4.180.0060.03812.36
5.4.170.0060.04012.37
5.4.160.0070.03812.36
5.4.150.0060.03912.36
5.4.140.0080.03612.05
5.4.130.0060.03612.03
5.4.120.0060.03812.00
5.4.110.0070.04111.99
5.4.100.0080.04011.99
5.4.90.0100.04412.00
5.4.80.0080.04011.99
5.4.70.0070.04211.99
5.4.60.0070.03711.99
5.4.50.0080.03611.99
5.4.40.0070.03911.97
5.4.30.0080.03711.97
5.4.20.0060.03911.97
5.4.10.0060.03611.97
5.4.00.0060.03911.46
5.3.280.0060.03912.71
5.3.270.0060.04312.72
5.3.260.0060.04212.72
5.3.250.0050.04012.72
5.3.240.0100.04012.72
5.3.230.0090.04612.71
5.3.220.0100.03712.68
5.3.210.0090.04312.68
5.3.200.0090.03712.68
5.3.190.0070.04212.68
5.3.180.0070.03812.67
5.3.170.0090.04312.67
5.3.160.0050.04212.67
5.3.150.0050.04612.67
5.3.140.0070.04412.66
5.3.130.0090.04512.66
5.3.120.0130.05012.66
5.3.110.0100.04112.66
5.3.100.0070.04112.12
5.3.90.0060.04112.08
5.3.80.0060.03912.07
5.3.70.0060.03812.07
5.3.60.0070.03512.07
5.3.50.0070.03512.00
5.3.40.0060.03812.00
5.3.30.0090.03511.94
5.3.20.0070.03411.71
5.3.10.0070.03711.67
5.3.00.0070.03911.66

preferences:
142.83 ms | 1386 KiB | 7 Q