3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(int $a) { var_dump($a); } $string = 123; test($string);

preferences:
30.89 ms | 402 KiB | 5 Q