3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { const A = 2 << 0; const B = 2 << 1; } print_r(Foo::A); print_r(Foo::B);
Output for 7.1.6
24