3v4l.org

run code in 300+ PHP versions simultaneously
<?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
Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.29, 8.2.0 - 8.2.20, 8.3.0 - 8.3.8
bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(true)

preferences:
230.7 ms | 404 KiB | 294 Q