3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = function (string $bar) { if (is_trusted($bar)) { echo "it's trusted!\n"; } else { echo "it can't be trusted!\n"; } }; $baz = trim(' literal string that gets manipulated '); $foo('literal string not manipulated'); $foo($baz);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
159.55 ms | 1481 KiB | 11 Q