3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php use function Fuck\in_array; echo in_array('23'); echo "namespace:".__NAMESPACE__."\n"; namespace Fuck; function in_array($a=null) { return "suka\n"; }
based on a9l96
Output for 7.0.1 - 7.1.7
Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /in/6ogNs on line 9
Process exited with code 255.
Output for 5.6.0 - 5.6.30, 7.0.0
Fatal error: Namespace declaration statement has to be the very first statement in the script in /in/6ogNs on line 9
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: Namespace declaration statement has to be the very first statement in the script: (Line: 9, Char: 15) in /in/6ogNs:9 Stack trace: #0 {main}
Process exited with code 255.