3v4l.org

run code in 500+ 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.7
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.31, 8.3.0 - 8.3.31, 8.4.1 - 8.4.22
Fatal error: Trait "Getter" not found in /in/BIkla on line 3
Process exited with code 255.

preferences:
65.8 ms | 1022 KiB | 4 Q