3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php (int)$value == 1 ? (int)1 : ((int)$value == 2 ? (int)0 : null);
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: value in /in/FZeiF on line 2 Notice: Undefined variable: value in /in/FZeiF on line 2
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: value in /in/FZeiF on line 2 Notice: Undefined variable: value in /in/FZeiF on line 2