3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $before = new DateTime('2013-06-13'); $days = $before->diff(DateTime())->format('%a'); var_dump($days . ' day' . (($days > 1 || $days < 0) : 's' ? ''));
Output for 5.3.0 - 5.4.15
Parse error: syntax error, unexpected ':' in /in/MYjeJ on line 4
Process exited with code 255.