3v4l.org

run code in 200+ PHP versions simultaneously
<?php function test() { return (string)([] ?: ''); } var_dump(test());
based on LBncK
Output for 7.2.0 - 7.4.4
string(0) ""