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);

preferences:
27.43 ms | 402 KiB | 5 Q