3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(0 ?? 3); // int(3) var_dump(false ?? 3); // int(3) var_dump('' ?? 3); // int(3)
based on ZOQk1
Output for 7.0.0 - 7.2.0
int(0) bool(false) string(0) ""
Output for 5.3.19 - 5.6.21
Parse error: syntax error, unexpected '?' in /in/cJ44E on line 3
Process exited with code 255.