- token_get_all: documentation ( source)
- htmlentities: documentation ( source)
- token_name: documentation ( source)
<?php
print is_int(-9223372036854775808)? "true\n" : "false\n";
$code = '<?php is_int(-1.1e300)';
foreach(token_get_all($code) as $c){
if(is_array($c)){
print(token_name($c[0]).": '".htmlentities($c[1])."'\n");
}
else {
print("$c\n");
}
}