3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function f($̀,$́){$̂=$̀;$̃=$̀[$́];$̂[$́]=!$̃;$̄=$̃!==$̀[$́];$̀[$́]=$̃;return$̄;} var_dump(f (1,2));
based on 4VDX9
Output for 4.3.0 - 7.2.6
Warning: Cannot use a scalar value as an array in /in/RBn4c on line 3 Warning: Cannot use a scalar value as an array in /in/RBn4c on line 3 bool(false)