3v4l.org

run code in 300+ PHP versions simultaneously
<?php //declare(strict_types=1); class Pont { public float $longueur = 0; } $pont = new Pont; $pont->longueur = '263.0'; var_dump($pont);

preferences:
55.58 ms | 404 KiB | 5 Q