3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date1 = date_create_from_format("2014-01-04","Y-m-d"); $date2 = date_create_from_format("2014-02-01","Y-m-d"); echo date_diff($date1,$date2);