3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $php = "class A { static function class() { return A::class; } } "; var_dump(token_get_all($php));
based on jLUf0
Output for 7.0.0 - 7.2.0
array(1) { [0]=> array(3) { [0]=> int(321) [1]=> string(97) "class A { static function class() { return A::class; } } " [2]=> int(1) } }
Output for 5.6.0 - 5.6.28
array(1) { [0]=> array(3) { [0]=> int(314) [1]=> string(97) "class A { static function class() { return A::class; } } " [2]=> int(1) } }
Output for 5.5.0 - 5.5.38
array(1) { [0]=> array(3) { [0]=> int(312) [1]=> string(97) "class A { static function class() { return A::class; } } " [2]=> int(1) } }
Output for 5.4.0 - 5.4.45
array(1) { [0]=> array(3) { [0]=> int(311) [1]=> string(97) "class A { static function class() { return A::class; } } " [2]=> int(1) } }