3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $now = new DateTime(); $now->setTime(10,00); $punchIn = new DateTime(); // 10:55 am $punchIn->setTime(11,00); print_r(((int)$now->diff($punchIn)->format('%H'))*60.(int)$now->diff($punchIn)->format('%i')); if ((int)$now->diff($punchIn)->format('%i') < 10) { print_r( 'punchIn'); }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.0 - 5.4.15
Parse error: syntax error, unexpected '(int)' (int) (T_INT_CAST) in 3kBMg on line 8
Process exited with code 255.
Output for 5.3.25
Parse error: syntax error, unexpected T_INT_CAST in /in/3kBMg on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected T_INT_CAST in 3kBMg on line 8
Process exited with code 255.