3v4l.org

run code in 500+ PHP versions simultaneously
<?php use urls\Needprofile; use stuff\NeedProfile; final class AClass { public function aMethod() { Needprofile::doSomething(); } public function aMethod2() { NeedProfile::doSomething(); } }
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.22, 8.2.0 - 8.2.9, 8.3.5
Fatal error: Cannot use stuff\NeedProfile as NeedProfile because the name is already in use in /in/eAZRa on line 4
Process exited with code 255.

preferences:
46.3 ms | 759 KiB | 4 Q