3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $cParentID = 1; echo 'Greater than -1? ', ($cParentID > -1) ? 'yes' : 'no', "\n"; echo 'Not equals to undefined? ', ($cParentID != $stopAt) ? 'yes' : 'no', "\n"; $cParentID = null; echo 'Greater than -1? ', ($cParentID > -1) ? 'yes' : 'no', "\n"; echo 'Not equals to undefined? ', ($cParentID != $stopAt) ? 'yes' : 'no', "\n";
Output for 5.0.4 - 7.1.0
Greater than -1? yes Not equals to undefined? Notice: Undefined variable: stopAt in /in/JaWIe on line 4 yes Greater than -1? no Not equals to undefined? Notice: Undefined variable: stopAt in /in/JaWIe on line 7 no
Output for 4.3.0 - 5.0.3
Greater than -1? yes Not equals to undefined? Notice: Undefined variable: stopAt in /in/JaWIe on line 4 yes Greater than -1? no Not equals to undefined? Notice: Undefined variable: stopAt in /in/JaWIe on line 7 no