3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump('0' == '0'); var_dump('0' ?? '0' == '0'); var_dump(('0' ?? '0') == '0'); var_dump((null ?? "0") == '0');
based on sWP36
Output for hhvm-3.15.4, 7.0.0 - 7.3.0rc3
bool(true) string(1) "0" bool(true) bool(true)
Output for 5.6.0 - 5.6.30
Parse error: syntax error, unexpected '?' in /in/U21rJ on line 4
Process exited with code 255.