3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class ClassName { } if (class_exists('ClassName') && defined('Class::CONSTANT')) { echo "exists"; }
Output for 4.3.0 - 5.2.3, 5.2.13 - 7.1.0
Output for 5.2.4 - 5.2.12
Fatal error: Class 'Class' not found in /in/GNokg on line 5
Process exited with code 255.