3v4l.org

run code in 500+ PHP versions simultaneously
<?php trait X { const WUT = 1; }
Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.30, 5.6.7 - 5.6.14
Fatal error: Traits cannot have constants in /in/gCvYH on line 3
Process exited with code 255.

preferences:
44.9 ms | 723 KiB | 4 Q