<?php
foreach (preg_split('/,\s*/',
'__halt_compiler,abstract,and,array,as,break,callable,case,catch,class,clone,const,continue,declare,default,
die,do,echo,else,elseif,empty,enddeclare,endfor,endforeach,endif,endswitch,endwhile,eval,exit,extends,final,
finally,for,foreach,function,global,goto,if,implements,include,include_once,instanceof,insteadof,interface,
isset,list,namespace,new,or,print,private,protected,public,require,require_once,return,static,switch,throw,
trait,try,unset,use,var,while,xor,yield'
) as $keyword) {
try {
printf("%20s: ", $keyword);
eval("echo $keyword::class;");
} catch (Throwable $t) {
echo $t->getMessage(), "\n";
}
}
Abusive script
This script was stopped while abusing our resources
- Output for 8.3.0 - 8.3.11
- __halt_compiler: syntax error, unexpected token "__halt_compiler"
abstract: syntax error, unexpected token "abstract"
and: syntax error, unexpected token "and"
array: syntax error, unexpected token "::", expecting "("
as: syntax error, unexpected token "as"
break: syntax error, unexpected token "break"
callable: syntax error, unexpected token "callable"
case: syntax error, unexpected token "case"
catch: syntax error, unexpected token "catch"
class: syntax error, unexpected token "class"
clone: syntax error, unexpected token "::"
const: syntax error, unexpected token "const"
continue: syntax error, unexpected token "continue"
declare: syntax error, unexpected token "declare"
default: syntax error, unexpected token "default"
die: syntax error, unexpected token "::", expecting "," or ";"
do: syntax error, unexpected token "do"
echo: syntax error, unexpected token "echo"
else: syntax error, unexpected token "else"
elseif: syntax error, unexpected token "elseif"
empty: syntax error, unexpected token "::", expecting "("
enddeclare: syntax error, unexpected token "enddeclare"
endfor: syntax error, unexpected token "endfor"
endforeach: syntax error, unexpected token "endforeach"
endif: syntax error, unexpected token "endif"
endswitch: syntax error, unexpected token "endswitch"
endwhile: syntax error, unexpected token "endwhile"
eval: syntax error, unexpected token "::", expecting "("
exit: syntax error, unexpected token "::", expecting "," or ";"
extends: syntax error, unexpected token "extends"
final: syntax error, unexpected token "final"
finally: syntax error, unexpected token "finally"
for: syntax error, unexpected token "for"
foreach: syntax error, unexpected token "foreach"
function: syntax error, unexpected token "::", expecting "("
global: syntax error, unexpected token "global"
goto: syntax error, unexpected token "goto"
if: syntax error, unexpected token "if"
implements: syntax error, unexpected token "implements"
include: syntax error, unexpected token "::"
include_once: syntax error, unexpected token "::"
instanceof: syntax error, unexpected token "instanceof"
insteadof: syntax error, unexpected token "insteadof"
interface: syntax error, unexpected token "interface"
isset: syntax error, unexpected token "::", expecting "("
list: syntax error, unexpected token "::", expecting "("
namespace: syntax error, unexpected token "namespace"
new: syntax error, unexpected token "::", expecting "class"
or: syntax error, unexpected token "or"
print: syntax error, unexpected token "::"
private: syntax error, unexpected token "private"
protected: syntax error, unexpected token "protected"
public: syntax error, unexpected token "public"
require: syntax error, unexpected token "::"
require_once: syntax error, unexpected token "::"
return: syntax error, unexpected token "return"
static: Cannot use "static" in the global scope
switch: syntax error, unexpected token "switch"
throw: syntax error, unexpected token "::"
trait: syntax error, unexpected token "trait"
try: syntax error, unexpected token "try"
unset: syntax error, unexpected token "unset"
use: syntax error, unexpected token "use"
var: syntax error, unexpected token "var"
while: syntax error, unexpected token "while"
xor: syntax error, unexpected token "xor"
yield: syntax error, unexpected token "::", expecting "," or ";"
- Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.29, 8.2.0 - 8.2.23
- __halt_compiler: syntax error, unexpected token "__halt_compiler"
abstract: syntax error, unexpected token "abstract"
and: syntax error, unexpected token "and"
array: syntax error, unexpected token "::", expecting "("
as: syntax error, unexpected token "as"
break: syntax error, unexpected token "break"
callable: syntax error, unexpected token "callable"
case: syntax error, unexpected token "case"
catch: syntax error, unexpected token "catch"
class: syntax error, unexpected token "class"
clone: syntax error, unexpected token "::"
const: syntax error, unexpected token "const"
continue: syntax error, unexpected token "continue"
declare: syntax error, unexpected token "declare"
default: syntax error, unexpected token "default"
die: syntax error, unexpected token "::", expecting "," or ";"
do: syntax error, unexpected token "do"
echo: syntax error, unexpected token "echo"
else: syntax error, unexpected token "else"
elseif: syntax error, unexpected token "elseif"
empty: syntax error, unexpected token "::", expecting "("
enddeclare: syntax error, unexpected token "enddeclare"
endfor: syntax error, unexpected token "endfor"
endforeach: syntax error, unexpected token "endforeach"
endif: syntax error, unexpected token "endif"
endswitch: syntax error, unexpected token "endswitch"
endwhile: syntax error, unexpected token "endwhile"
eval: syntax error, unexpected token "::", expecting "("
exit: syntax error, unexpected token "::", expecting "," or ";"
extends: syntax error, unexpected token "extends"
final: syntax error, unexpected token "final"
finally: syntax error, unexpected token "finally"
for: syntax error, unexpected token "for"
foreach: syntax error, unexpected token "foreach"
function: syntax error, unexpected token "::", expecting "("
global: syntax error, unexpected token "global"
goto: syntax error, unexpected token "goto"
if: syntax error, unexpected token "if"
implements: syntax error, unexpected token "implements"
include: syntax error, unexpected token "::"
include_once: syntax error, unexpected token "::"
instanceof: syntax error, unexpected token "instanceof"
insteadof: syntax error, unexpected token "insteadof"
interface: syntax error, unexpected token "interface"
isset: syntax error, unexpected token "::", expecting "("
list: syntax error, unexpected token "::", expecting "("
namespace: syntax error, unexpected token "namespace"
new: syntax error, unexpected token "::"
or: syntax error, unexpected token "or"
print: syntax error, unexpected token "::"
private: syntax error, unexpected token "private"
protected: syntax error, unexpected token "protected"
public: syntax error, unexpected token "public"
require: syntax error, unexpected token "::"
require_once: syntax error, unexpected token "::"
return: syntax error, unexpected token "return"
static: Cannot use "static" in the global scope
switch: syntax error, unexpected token "switch"
throw: syntax error, unexpected token "::"
trait: syntax error, unexpected token "trait"
try: syntax error, unexpected token "try"
unset: syntax error, unexpected token "unset"
use: syntax error, unexpected token "use"
var: syntax error, unexpected token "var"
while: syntax error, unexpected token "while"
xor: syntax error, unexpected token "xor"
yield: syntax error, unexpected token "::", expecting "," or ";"
- Output for 7.4.0 - 7.4.33
- __halt_compiler: syntax error, unexpected '__halt_compiler' (T_HALT_COMPILER)
abstract: syntax error, unexpected 'abstract' (T_ABSTRACT)
and: syntax error, unexpected 'and' (T_LOGICAL_AND)
array: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting '('
as: syntax error, unexpected 'as' (T_AS)
break: syntax error, unexpected 'break' (T_BREAK)
callable: syntax error, unexpected 'callable' (T_CALLABLE)
case: syntax error, unexpected 'case' (T_CASE)
catch: syntax error, unexpected 'catch' (T_CATCH)
class: syntax error, unexpected 'class' (T_CLASS)
clone: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)
const: syntax error, unexpected 'const' (T_CONST)
continue: syntax error, unexpected 'continue' (T_CONTINUE)
declare: syntax error, unexpected 'declare' (T_DECLARE)
default: syntax error, unexpected 'default' (T_DEFAULT)
die: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting ';' or ','
do: syntax error, unexpected 'do' (T_DO)
echo: syntax error, unexpected 'echo' (T_ECHO)
else: syntax error, unexpected 'else' (T_ELSE)
elseif: syntax error, unexpected 'elseif' (T_ELSEIF)
empty: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting '('
enddeclare: syntax error, unexpected 'enddeclare' (T_ENDDECLARE)
endfor: syntax error, unexpected 'endfor' (T_ENDFOR)
endforeach: syntax error, unexpected 'endforeach' (T_ENDFOREACH)
endif: syntax error, unexpected 'endif' (T_ENDIF)
endswitch: syntax error, unexpected 'endswitch' (T_ENDSWITCH)
endwhile: syntax error, unexpected 'endwhile' (T_ENDWHILE)
eval: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting '('
exit: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting ';' or ','
extends: syntax error, unexpected 'extends' (T_EXTENDS)
final: syntax error, unexpected 'final' (T_FINAL)
finally: syntax error, unexpected 'finally' (T_FINALLY)
for: syntax error, unexpected 'for' (T_FOR)
foreach: syntax error, unexpected 'foreach' (T_FOREACH)
function: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting '('
global: syntax error, unexpected 'global' (T_GLOBAL)
goto: syntax error, unexpected 'goto' (T_GOTO)
if: syntax error, unexpected 'if' (T_IF)
implements: syntax error, unexpected 'implements' (T_IMPLEMENTS)
include: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)
include_once: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)
instanceof: syntax error, unexpected 'instanceof' (T_INSTANCEOF)
insteadof: syntax error, unexpected 'insteadof' (T_INSTEADOF)
interface: syntax error, unexpected 'interface' (T_INTERFACE)
isset: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting '('
list: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting '('
namespace: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting \\ (T_NS_SEPARATOR)
new: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)
or: syntax error, unexpected 'or' (T_LOGICAL_OR)
print: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)
private: syntax error, unexpected 'private' (T_PRIVATE)
protected: syntax error, unexpected 'protected' (T_PROTECTED)
public: syntax error, unexpected 'public' (T_PUBLIC)
require: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)
require_once: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)
return: syntax error, unexpected 'return' (T_RETURN)
static: Cannot use "static" when no class scope is active
switch: syntax error, unexpected 'switch' (T_SWITCH)
throw: syntax error, unexpected 'throw' (T_THROW)
trait: syntax error, unexpected 'trait' (T_TRAIT)
try: syntax error, unexpected 'try' (T_TRY)
unset: syntax error, unexpected 'unset' (T_UNSET)
use: syntax error, unexpected 'use' (T_USE)
var: syntax error, unexpected 'var' (T_VAR)
while: syntax error, unexpected 'while' (T_WHILE)
xor: syntax error, unexpected 'xor' (T_LOGICAL_XOR)
yield: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting ';' or ','
- Output for 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33
- __halt_compiler: syntax error, unexpected '__halt_compiler' (T_HALT_COMPILER)
abstract: syntax error, unexpected 'abstract' (T_ABSTRACT)
and: syntax error, unexpected 'and' (T_LOGICAL_AND)
array: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting '('
as: syntax error, unexpected 'as' (T_AS)
break: syntax error, unexpected 'break' (T_BREAK)
callable: syntax error, unexpected 'callable' (T_CALLABLE)
case: syntax error, unexpected 'case' (T_CASE)
catch: syntax error, unexpected 'catch' (T_CATCH)
class: syntax error, unexpected 'class' (T_CLASS)
clone: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)
const: syntax error, unexpected 'const' (T_CONST)
continue: syntax error, unexpected 'continue' (T_CONTINUE)
declare: syntax error, unexpected 'declare' (T_DECLARE)
default: syntax error, unexpected 'default' (T_DEFAULT)
die: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting ',' or ';'
do: syntax error, unexpected 'do' (T_DO)
echo: syntax error, unexpected 'echo' (T_ECHO)
else: syntax error, unexpected 'else' (T_ELSE)
elseif: syntax error, unexpected 'elseif' (T_ELSEIF)
empty: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting '('
enddeclare: syntax error, unexpected 'enddeclare' (T_ENDDECLARE)
endfor: syntax error, unexpected 'endfor' (T_ENDFOR)
endforeach: syntax error, unexpected 'endforeach' (T_ENDFOREACH)
endif: syntax error, unexpected 'endif' (T_ENDIF)
endswitch: syntax error, unexpected 'endswitch' (T_ENDSWITCH)
endwhile: syntax error, unexpected 'endwhile' (T_ENDWHILE)
eval: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting '('
exit: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting ',' or ';'
extends: syntax error, unexpected 'extends' (T_EXTENDS)
final: syntax error, unexpected 'final' (T_FINAL)
finally: syntax error, unexpected 'finally' (T_FINALLY)
for: syntax error, unexpected 'for' (T_FOR)
foreach: syntax error, unexpected 'foreach' (T_FOREACH)
function: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting '('
global: syntax error, unexpected 'global' (T_GLOBAL)
goto: syntax error, unexpected 'goto' (T_GOTO)
if: syntax error, unexpected 'if' (T_IF)
implements: syntax error, unexpected 'implements' (T_IMPLEMENTS)
include: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)
include_once: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)
instanceof: syntax error, unexpected 'instanceof' (T_INSTANCEOF)
insteadof: syntax error, unexpected 'insteadof' (T_INSTEADOF)
interface: syntax error, unexpected 'interface' (T_INTERFACE)
isset: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting '('
list: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting '('
namespace: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting \\ (T_NS_SEPARATOR)
new: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)
or: syntax error, unexpected 'or' (T_LOGICAL_OR)
print: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)
private: syntax error, unexpected 'private' (T_PRIVATE)
protected: syntax error, unexpected 'protected' (T_PROTECTED)
public: syntax error, unexpected 'public' (T_PUBLIC)
require: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)
require_once: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)
return: syntax error, unexpected 'return' (T_RETURN)
static: Cannot use "static" when no class scope is active
switch: syntax error, unexpected 'switch' (T_SWITCH)
throw: syntax error, unexpected 'throw' (T_THROW)
trait: syntax error, unexpected 'trait' (T_TRAIT)
try: syntax error, unexpected 'try' (T_TRY)
unset: syntax error, unexpected 'unset' (T_UNSET)
use: syntax error, unexpected 'use' (T_USE)
var: syntax error, unexpected 'var' (T_VAR)
while: syntax error, unexpected 'while' (T_WHILE)
xor: syntax error, unexpected 'xor' (T_LOGICAL_XOR)
yield: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting ',' or ';'
preferences:
132.37 ms | 453 KiB | 5 Q