3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $month = 'november'; $year = '2015'; echo new \MongoDate(strtotime("first day of " . $month . " " . $year));
based on ZL5dt
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'MongoDate' not found in /in/Q6Aak:4 Stack trace: #0 {main} thrown in /in/Q6Aak on line 4
Process exited with code 255.
Output for 5.3.19 - 5.6.21
Fatal error: Class 'MongoDate' not found in /in/Q6Aak on line 4
Process exited with code 255.