3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo date( 'd-m-Y', strtotime('2015-03-07')) - date( 'd-m-Y', strtotime("+ 7 days") ); echo DateTime( '2015-03-07' );
based on l4145
Output for 7.1.0 - 7.2.0
Notice: A non well formed numeric value encountered in /in/WLiOD on line 2 Notice: A non well formed numeric value encountered in /in/WLiOD on line 2 -9 Fatal error: Uncaught Error: Call to undefined function DateTime() in /in/WLiOD:4 Stack trace: #0 {main} thrown in /in/WLiOD on line 4
Process exited with code 255.
Output for 7.0.0 - 7.0.20
-9 Fatal error: Uncaught Error: Call to undefined function DateTime() in /in/WLiOD:4 Stack trace: #0 {main} thrown in /in/WLiOD on line 4
Process exited with code 255.
Output for 5.0.0 - 5.0.5, 5.1.2 - 5.6.28
-9 Fatal error: Call to undefined function DateTime() in /in/WLiOD on line 4
Process exited with code 255.
Output for 5.1.0 - 5.1.1
6 Fatal error: Call to undefined function DateTime() in /in/WLiOD on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
-9 Fatal error: Call to undefined function: datetime() in /in/WLiOD on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
-9 Fatal error: Call to undefined function: datetime() in /in/WLiOD on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
-9 Fatal error: Call to undefined function: datetime() in /in/WLiOD on line 4