3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $end = strtotime('+1 month',strtotime(date('m').'/01/'.date('Y').' 00:00:00')) - 1; $now = time(); $numSecondsUntilEnd = $end - $now; echo $numSecondsUntilEnd; // if required in seconds echo $numSecondsUntilEnd / 60; // if required in minutes echo $numSecondsUntilEnd / 3600; // if required in hours
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
118257919709.65328.49416666667
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/GOX7q on line 8
Process exited with code 255.