3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); class Pont { private string $unite = 'm²'; private float $longueur; private float $largeur; } $towerBridge = new Pont; $towerBridge->longueur =10
Output for 8.2.31 - 8.2.32, 8.3.0 - 8.3.32, 8.4.1 - 8.4.23, 8.5.0 - 8.5.8
Parse error: syntax error, unexpected end of file in /in/mOokh on line 14
Process exited with code 255.

preferences:
45.87 ms | 767 KiB | 3 Q