3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php System.out.print('Hi'); $x = new DateTime('now'); echo $x->format('Y-m-d H:i:s');
Output for 5.2.0 - 7.1.0
Notice: Use of undefined constant System - assumed 'System' in /in/HhRCd on line 3 Notice: Use of undefined constant out - assumed 'out' in /in/HhRCd on line 3 Hi2013-10-08 21:18:08
Output for 5.0.0 - 5.1.6
Notice: Use of undefined constant System - assumed 'System' in /in/HhRCd on line 3 Notice: Use of undefined constant out - assumed 'out' in /in/HhRCd on line 3 Hi Fatal error: Class 'DateTime' not found in /in/HhRCd on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Notice: Use of undefined constant System - assumed 'System' in /in/HhRCd on line 3 Notice: Use of undefined constant out - assumed 'out' in /in/HhRCd on line 3 Hi Fatal error: Cannot instantiate non-existent class: datetime in /in/HhRCd on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant System - assumed 'System' in /in/HhRCd on line 3 Notice: Use of undefined constant out - assumed 'out' in /in/HhRCd on line 3 Hi Fatal error: Cannot instantiate non-existent class: datetime in /in/HhRCd on line 5