3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(callable $fn): void { // do something with $fn, call it maybe $fn(); } foo(function (): void { echo 'hello world'; });

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
57.89 ms | 723 KiB | 4 Q