3v4l.org

run code in 500+ PHP versions simultaneously
<?php class User { public function __construct(private string $first, private string $last) {} var string $fullName { get { return $this->first . " " . $this->last; } } }
Output for 8.3.5
Parse error: syntax error, unexpected token "{", expecting "," or ";" in /in/mQ6pG on line 7
Process exited with code 255.

preferences:
38.48 ms | 492 KiB | 3 Q