<?php
namespace \Selfie;
Class Tester {
public function __construct(){
}
public function getVal($value){
return $value;
}
}
$t = new Tester();
echo $t->getVal("Daan");
Parse error: syntax error, unexpected fully qualified name "\Selfie", expecting "{" in /in/hECdp on line 3
Process exited with code 255.
Output for 8.3.5
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
Parse error: syntax error, unexpected fully qualified name "\Selfie", expecting "{" in /in/hECdp on line 3
Process exited with code 255.
Fatal error: Uncaught Error: Undefined constant 'Selfie' in /in/hECdp:3
Stack trace:
#0 {main}
thrown in /in/hECdp on line 3
Process exited with code 255.
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/hECdp on line 3
Parse error: syntax error, unexpected T_STRING in /in/hECdp on line 3
Process exited with code 255.
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/hECdp on line 3
Parse error: parse error, unexpected T_STRING in /in/hECdp on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/hECdp on line 3
Parse error: parse error in /in/hECdp on line 3
Process exited with code 255.