3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = new \DateTime('12th of this month');
based on PHtgm
Output for 7.0.0 - 7.3.0beta1
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (12th of this month) at position 0 (1): Unexpected character in /in/rCl2K:3 Stack trace: #0 /in/rCl2K(3): DateTime->__construct('12th of this mo...') #1 {main} thrown in /in/rCl2K on line 3
Process exited with code 255.
Output for hhvm-3.18.4 - 3.21.0
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (12th of this month) at position 0 (1): Unexpected character' in /in/rCl2K:3 Stack trace: #0 /in/rCl2K(3): DateTime->__construct() #1 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (12th of this month) at position 0 (1): Unexpected character' in /in/rCl2K:3 Stack trace: #0 /in/rCl2K(3): DateTime->__construct('12th of this mo...') #1 {main} thrown in /in/rCl2K on line 3
Process exited with code 255.