3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('test', function($input) { $output = $input; // do something here return $output; }); $n = test(123);

preferences:
34.76 ms | 402 KiB | 5 Q