3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test (string $a) { return $a ? 'true' : 'false'; } print test(pow(4, -1));

preferences:
57.8 ms | 402 KiB | 5 Q