3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace SomeNamespace; use Vendor\Namespace\ClassToOverload; // нужно подставить свой class SomeLayer { // ... public function someFunc(...) { // ... return new SomeClass($var, new ClassToOverload) // чтобы заменить тут } // ... }
Output for 7.2.0 - 7.2.27, 7.3.0 - 7.3.14, 7.4.0 - 7.4.2
Parse error: syntax error, unexpected 'Namespace' (T_NAMESPACE), expecting identifier (T_STRING) or '{' in /in/NRkN8 on line 5
Process exited with code 255.

preferences:
160.4 ms | 996 KiB | 7 Q