3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $seconds = 24; echo $seconds > 3600 ? gmdate("H:i:s", seconds) : gmdate("i:s", seconds);
based on o0bQ7
Output for 7.2.0 - 7.2.11
Warning: Use of undefined constant seconds - assumed 'seconds' (this will throw an Error in a future version of PHP) in /in/i3q8u on line 5 Warning: gmdate() expects parameter 2 to be integer, string given in /in/i3q8u on line 5
Output for hhvm-3.10.1 - 3.21.3, 7.0.0 - 7.1.23
Notice: Use of undefined constant seconds - assumed 'seconds' in /in/i3q8u on line 5 Warning: gmdate() expects parameter 2 to be integer, string given in /in/i3q8u on line 5
Output for hhvm-3.22.0
Notice: Use of undefined constant seconds - assumed 'seconds' in /in/i3q8u on line -1 Warning: gmdate() expects parameter 2 to be integer, string given in /in/i3q8u on line -1
Output for 5.3.20 - 5.6.38
Notice: Use of undefined constant seconds - assumed 'seconds' in /in/i3q8u on line 5 Warning: gmdate() expects parameter 2 to be long, string given in /in/i3q8u on line 5