3v4l.org

run code in 300+ PHP versions simultaneously
<?php $interval = (new DateTime('yesterday'))->getTimestamp() - time(); echo round( $interval / (60 * 60) );
Output for 7.0.20
-37

preferences:
51.15 ms | 400 KiB | 6 Q