3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fecha = "20/04/2015 19:11:33"; list($d, $M, $y, $h, $m, $s) = preg_split("/[\s,\/:]+/",$fecha); echo "\n->"; echo strtotime("$d-$M-$y $h:$m:$s") - 1429575034; echo "\n->"; echo strtotime("2015-20-04 19:11:33") - 1429575034; echo "\n->"; echo strtotime("20/04/2015 19:11:33") . 'No funciona';
based on DVoiB
Output for 5.1.3 - 7.2.0
->-25141 ->-1429575034 ->No funciona
Output for 5.1.0 - 5.1.2
->-1429575034 ->86666 ->No funciona
Output for 4.3.0 - 5.0.5
->330195659 ->40755659 ->1470330693No funciona