3v4l.org

run code in 200+ php & hhvm versions
<?php var_dump( $foo ?? 1 ); var_dump( false ?? 2 );
Output for 7.1.25 - 7.4.0alpha2
int(1) bool(false)