3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $value = new DateTime; if (is_object($value) && $value instanceof DateTime ) { $value = $value->format(AppConstant::DATETIME_FORMAT_MYSQL); }
based on S4GDs
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'AppConstant' not found in /in/u6oHS:7 Stack trace: #0 {main} thrown in /in/u6oHS on line 7
Process exited with code 255.
Output for 5.3.17 - 5.6.21
Fatal error: Class 'AppConstant' not found in /in/u6oHS on line 7
Process exited with code 255.