3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Test { function sqrt($arg=null) { return 'test'; } } namespace Second { function sqrt($arg=null) { return 'second'; } } namespace { use Test; echo sqrt(); }
based on Oitfi
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc3
Warning: The use statement with non-compound name 'Test' has no effect in /in/FlbDH on line 21 Warning: sqrt() expects exactly 1 parameter, 0 given in /in/FlbDH on line 23
Output for hhvm-3.15.4
Warning: sqrt() expects exactly 1 parameter, 0 given in /in/FlbDH on line 23