3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $retVal = 0; $t1 = strtotime('2015-02-02'); $t2 = strtotime('2015-02-02'); $retVal = ($t1 < $t2) ? -1 : 1; echo $retVal; ?>
based on bOauY
Output for 4.3.0 - 7.2.0
1