3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = null; $b = null; $c = true; $d = false; if($a && !$b) { if(!!$c && !$d) { if($d && ($a || $c)) { if(!$d && $b) { $number = 1; } else { $number = 2; } } else { $number = 3; } } else { $number = 4; } } else { $number = 5; } print $number;
Output for 4.3.0 - 7.1.0
5