3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $gmt = "-5:00"; $local = "-8:00"; $offset = $local - $gmt; echo $offset; strtotime("-5:00 hours");
based on 5BWTN
Output for 7.1.0 - 7.2.0
Notice: A non well formed numeric value encountered in /in/tgcU2 on line 5 Notice: A non well formed numeric value encountered in /in/tgcU2 on line 5 -3
Output for 5.3.21 - 7.0.20
-3