3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // The result of the expression (false || true) is assigned to $e // Acts like: ($e = (false || true)) $e = false || true; echo $e; // The constant false is assigned to $f before the "or" operation occurs // Acts like: (($f = false) or true) $f = false or true; echo $f;
based on 5QgqP
Output for 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.30 - 7.3.0beta1
1