3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test($test) { return $test ? : 'default'; } echo test(null) . PHP_EOL; echo test('hello') . PHP_EOL;
based on J1X6G
Output for 5.3.22 - 7.3.0rc4
default hello