3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $today = strtotime(date("Y-m-d")); if (date('I', $today)) { echo "We're in BST!"; } else { echo "We're not in BST!"; }
based on fTsIT
Output for 5.6.28, 7.0.20 - 7.2.0
We're not in BST!
Output for 5.4.0 - 5.6.23, 7.0.0 - 7.0.8
We're in BST!