<?php
namespace My;
function f() {}
trait T {}
class C {}
interface I {}
const CON = 10;
$a = 11;
var_dump(\WTF::class, f::class, T::class, C::class, I::class, CON::class);
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
string(3) "WTF"
string(4) "My\f"
string(4) "My\T"
string(4) "My\C"
string(4) "My\I"
string(6) "My\CON"
Output for 5.4.0 - 5.4.45
Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /in/99Ys1 on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_STRING in /in/99Ys1 on line 5
Process exited with code 255.