3v4l.org

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