3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //define('CACHE', '123'); class test { const C = CACHE; function __construct() { echo self::C; } } new test(); ?>
based on XScuQ
Output for 7.2.0
Warning: Use of undefined constant CACHE - assumed 'CACHE' (this will throw an Error in a future version of PHP) in /in/aeSlJ on line 14 CACHE
Output for 5.5.0 - 7.1.10
Notice: Use of undefined constant CACHE - assumed 'CACHE' in /in/aeSlJ on line 14 CACHE