3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Turd { class Sammich { } } $ts = new Turd\Sammich(); echo 'hi';
based on 24nfI
Output for 5.3.19 - 5.6.15
Fatal error: No code may exist outside of namespace {} in /in/9Hjor on line 11
Process exited with code 255.