3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { const FIRST = 1; protected static $array = array( self::FIRST => 'first', 'second', 'third' ); public function __construct() { var_export(self::$array); } } $test = new Test();

preferences:
35.67 ms | 402 KiB | 5 Q