- preg_split: documentation ( source)
- printf: documentation ( source)
<?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";
}
}
This script was stopped while abusing our resources