3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $primary = 0; echo ($primary || $primary === "0" || $primary === 0) ? TRUE : FALSE; $primary = "0"; echo ($primary || $primary === "0" || $primary === 0) ? TRUE : FALSE; $primary = NULL; echo ($primary || $primary === "0" || $primary === 0) ? TRUE : FALSE; $primary = ''; echo ($primary || $primary === "0" || $primary === 0) ? TRUE : FALSE;
Output for 4.3.0 - 7.1.0
11