3v4l.org

run code in 300+ PHP versions simultaneously
<?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();

preferences:
73.3 ms | 402 KiB | 5 Q