3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //echo date('Y/m/d H:i', strtotime('2013-07-16 17:30') + 15 * 3600); echo date('Y/m/d H:i')."\n"; $currentTime = strtotime(date('Y/m/d H:i')); echo date('Y/m/d H:i', $endWork = strtotime(date('Y/m/d').' 17:30'))."\n"; echo date('Y/m/d H:i', $startWork = strtotime(date('Y/m/d').' 17:30') + 15 * 3600)."\n"; echo date('Y/m/d H:i', $today = strtotime(date('Y/m/d').' 17:30') + 23400)."\n"; //if($currentTime > $endWork && )
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
2013/07/16 08:50 2013/07/16 17:30 2013/07/17 08:30 2013/07/17 00:00
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/E5kbI on line 8
Process exited with code 255.