3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Everything you enter here will be executed by our servers. Try it! if (!empty($result) & $result !== NULL & $result !== null & $result !== 0 & $result !== '0' & $result !== '' & $result !== false ) { echo 'true'; } echo 'false';
Output for 5.0.4 - 7.1.10
Notice: Undefined variable: result in /in/OvjuH on line 4 Notice: Undefined variable: result in /in/OvjuH on line 4 Notice: Undefined variable: result in /in/OvjuH on line 4 Notice: Undefined variable: result in /in/OvjuH on line 4 Notice: Undefined variable: result in /in/OvjuH on line 4 Notice: Undefined variable: result in /in/OvjuH on line 4 false
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: result in /in/OvjuH on line 4 Notice: Undefined variable: result in /in/OvjuH on line 4 Notice: Undefined variable: result in /in/OvjuH on line 4 Notice: Undefined variable: result in /in/OvjuH on line 4 Notice: Undefined variable: result in /in/OvjuH on line 4 Notice: Undefined variable: result in /in/OvjuH on line 4 false