3v4l.org

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

preferences:
25.9 ms | 404 KiB | 5 Q