3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); date_default_timezone_set(PRC); //define('B', 'pre'); class test { const A = B; static function name() { echo @self::A . 'key'; } static function init() { self::name(); } } test::init();
based on sevju
Output for 7.2.0
Warning: Use of undefined constant PRC - assumed 'PRC' (this will throw an Error in a future version of PHP) in /in/LYf8C on line 3 Bkey
Output for 5.5.0 - 7.1.10
Notice: Use of undefined constant PRC - assumed 'PRC' in /in/LYf8C on line 3 Bkey