3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $b = ''; $c = 'ca'; echo isset($a) ? 1 : 0; echo "\n\r"; echo isset($b) ? 1 : 0; echo "\n\r"; echo isset($c) ? 1 : 0; echo "\n\r"; echo "---------------------------------------------"; echo "\n\r"; echo empty($a) ? 1 : 0; echo "\n\r"; echo empty($b) ? 1 : 0; echo "\n\r"; echo isset($c) ? 1 : 0;
Output for 4.3.0 - 7.1.0
0 1 1 --------------------------------------------- 1 1 1