3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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);
based on Whc3L
Output for hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.2.6
Output for 5.6.0 - 5.6.30
Parse error: syntax error, unexpected '?' in /in/Ddnjq on line 5
Process exited with code 255.