3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(token_get_all('<?php interface Foo { public function boo(): \Goo\Hoo}', TOKEN_PARSE));
Output for 7.0.0 - 7.2.0
Parse error: syntax error, unexpected '}', expecting ';' or '{' in on line 1
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Notice: Use of undefined constant TOKEN_PARSE - assumed 'TOKEN_PARSE' in /in/2USo7 on line 3 Warning: token_get_all() expects exactly 1 parameter, 2 given in /in/2USo7 on line 3 NULL