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("0000-00-00 00:00:00"); echo '<br>'; echo strtotime("20/04/2015 18:11:54");
based on gXm76
Output for 5.2.6 - 7.2.0
<br>-62169985172<br>
Output for 5.2.4 - 5.2.5
<br><br>
Output for 5.1.0 - 5.2.3
<br>943916400<br>
Output for 4.3.0 - 5.0.5
-1<br>943916400<br>1470327114