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
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 7.0.0 - 7.1.10
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 5.3.20 - 5.6.28
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