3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Return true to win function foo($value) { return $value !== $value; } // false var_dump(foo(false)); var_dump(foo(1)); var_dump(foo(1.0)); var_dump(foo(!0)); var_dump(foo('')); var_dump(foo(true)); var_dump(foo([])); var_dump(foo((float)1.09876544567543456)); // true var_dump(foo(NAN)); // Score 3
based on QOBnP
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.2.6
bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(true)