3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fecha = strtotime('2015-05-31'); $dateIni = new \DateTime(); $dateIni->setTimestamp();
Output for 5.3.0 - 7.3.0rc4
Warning: DateTime::setTimestamp() expects exactly 1 parameter, 0 given in /in/KUk0W on line 6
Output for 5.2.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/KUk0W on line 5 Fatal error: Call to undefined method DateTime::setTimestamp() in /in/KUk0W on line 6
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/KUk0W on line 5 Fatal error: Class 'DateTime' not found in /in/KUk0W on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/KUk0W on line 5 Fatal error: Cannot instantiate non-existent class: datetime in /in/KUk0W on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/KUk0W on line 5 Fatal error: Cannot instantiate non-existent class: datetime in /in/KUk0W on line 5