3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo DateTimeInterface::ATOM, PHP_EOL;
based on hfP1k
Output for 7.2.0
Y-m-d\TH:i:sP
Output for 7.0.0 - 7.1.10
Fatal error: Uncaught Error: Undefined class constant 'ATOM' in /in/Xs24H:3 Stack trace: #0 {main} thrown in /in/Xs24H on line 3
Process exited with code 255.
Output for 5.5.24 - 5.6.28
Fatal error: Undefined class constant 'ATOM' in /in/Xs24H on line 3
Process exited with code 255.
Output for 5.3.18 - 5.4.45
Fatal error: Class 'DateTimeInterface' not found in /in/Xs24H on line 3
Process exited with code 255.