3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = "2014-07-22 08:15:54"; $integer = "154"; $string = "Marian kupsztal"; var_dump(strtotime($date)); var_dump(strtotime($integer)); var_dump(strtotime($string));
based on 8UQnu
Output for 5.1.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
int(1406009754) bool(false) bool(false)
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.1 - 5.0.5
int(1406009754) int(1407110040) int(-1)
Output for 4.3.0
int(1406009754) int(1442793240) int(-1)