3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $time = strtotime("04/01/2016"); $date = new DateTime("04/01/2016"); echo $time; echo $date;
based on I6aFL
Output for 7.1.0 - 7.3.0alpha1
1459461600 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/Y7Hsp on line 5
Process exited with code 255.
Output for 5.5.0 - 7.0.20
1459461600 Catchable fatal error: Object of class DateTime could not be converted to string in /in/Y7Hsp on line 5
Process exited with code 255.