3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fecha = "20/04/2015 18:11:54"; list($d, $M, $y, $h, $m, $s) = preg_split("/[\s,\/:]+/",$fecha); echo strtotime("$d $M $y $h:$m:$s"); echo "<br>"; echo strtotime("2015-04-20 18:11:54") === '1429571959'; echo '<br>'; echo strtotime("20/04/2015 18:11:54");
based on o22VV
Output for 5.1.0 - 7.2.0
<br><br>
Output for 4.3.0 - 5.0.5
-1<br><br>1470327114