3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { const B = static::A; const A = 'B'; protected $_a = array( self::B => 'okay!', ); }
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.30
Fatal error: "static::" is not allowed in compile-time constants in /in/WmFu5 on line 4
Process exited with code 255.

preferences:
218.14 ms | 1399 KiB | 67 Q