3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date1 = date_create_from_format("Y-m-d","2014-01-04"); $date2 = date_create_from_format("Y-m-d","2014-02-01"); $interval = date_diff($date1,$date2); echo $interval = ->format('%d jours');
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /in/u5lUj on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/u5lUj on line 5
Process exited with code 255.