3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace { //use function Fuck\in_array; //echo in_array('23'); echo "namespace:".__NAMESPACE__."\n"; };
based on 6ogNs
Output for hhvm-3.15.4, 7.0.0 - 7.2.6
namespace:
Output for 5.6.0 - 5.6.30
Fatal error: No code may exist outside of namespace {} in /in/KkgBZ on line 12
Process exited with code 255.