3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = strtotime("08:00"); $b = strtotime("03:00"); $c = date('G:i',$a) + date('G:i',$a); echo date('G:i',$a).PHP_EOL; echo $c;
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/DI47a on line 7 Notice: A non well formed numeric value encountered in /in/DI47a on line 7 8:00 16
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.0.14
8:00 16
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/DI47a on line 9 8:00PHP_EOL16