- Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.29, 5.6.8 - 5.6.13
- Parse error: syntax error, unexpected '?' in /in/tTqA1 on line 4
Process exited with code 255.
<?php
function NC($x){
return ($x ?? "Foo");
}
NC(NULL); // I know this will return "Foo".
/* But I have no clue about what these will return. */
var_dump(NC(0));
var_dump(NC(-1));
var_dump(NC(""));
var_dump(NC(array());
var_dump(NC("banana"));