3v4l.org

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