3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(string $a): string { return round($a, 2); } var_dump(test(2.3445545));

preferences:
77.3 ms | 405 KiB | 5 Q