3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($text = "Bar") { echo $text; } // Pass the function to the array. Do not use () here. $array = array( 'func' => "foo" ); // And call it. $array['func'](); // Outputs: "Bar" $array['func']("Foo Bar"); // Outputs: "Foo Bar"

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
153.14 ms | 2806 KiB | 8 Q