3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo date('Y-m-d'). "\r\n"; $date=new DateTime(); echo $date.format('Y-m-d'). "\r\n";
based on 7WFYc
Output for 7.0.0 - 7.2.0
2015-10-09 Fatal error: Uncaught Error: Call to undefined function format() in /in/iCUlZ:4 Stack trace: #0 {main} thrown in /in/iCUlZ on line 4
Process exited with code 255.
Output for 5.4.0 - 5.6.28
2015-10-09 Fatal error: Call to undefined function format() in /in/iCUlZ on line 4
Process exited with code 255.