3v4l.org

run code in 300+ PHP versions simultaneously
<?php assert((!empty(0) ? 0 : 5) === 5); assert((0 ?? 5) === 0); // isset() is by-reference, so needs a variable. $x = 0; assert((isset($x) ? $x : 5) === 0);

preferences:
47.1 ms | 404 KiB | 5 Q