3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace BAR { //echo A; print foo::T_STRING; } namespace BAR { class foo { const T_STRING = T_STRING; } const T_STRING = 'a'; //echo A; }
based on jia3D
Output for 7.0.0 - 7.3.0alpha1
319
Output for 5.6.0 - 5.6.23
310