3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class Price { public function __construct(private int $price, private int $decimalCount) { var_dump($price); var_dump($decimalCount); } } $price = new Price('100.82', '1');

preferences:
34.13 ms | 402 KiB | 5 Q