3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Route { use Getter; private string $url; private string $controllerName; public function __construct(string $url, string $controllerName) { $this->url = $url; $this->controllerName = $controllerName; } }
Output for 8.5.0 - 8.5.3
Fatal error: Uncaught Error: Trait "Getter" not found in /in/BIkla:3 Stack trace: #0 {main} thrown in /in/BIkla on line 3
Process exited with code 255.
Output for 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18
Fatal error: Trait "Getter" not found in /in/BIkla on line 3
Process exited with code 255.

preferences:
69.15 ms | 989 KiB | 4 Q