3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
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 hhvm-3.10.0

Process exited with code 153.
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