3v4l.org

run code in 300+ PHP versions simultaneously
<?php <<Attribute('foo')>> class Example {}
Output for 8.0.0
Parse error: syntax error, unexpected token "<<", expecting end of file in /in/XaAqs on line 3
Process exited with code 255.
Output for 7.3.0 - 7.3.25, 7.4.0 - 7.4.13
Parse error: syntax error, unexpected '<<' (T_SL), expecting end of file in /in/XaAqs on line 3
Process exited with code 255.

preferences:
187.68 ms | 1395 KiB | 48 Q