3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = 'lol'; if(empty($var)) { echo "leeg"; } else { echo "Waarde!"; } if(trim($var)=='') { echo "leeg"; } else { echo "waarde"; } ?>
Output for 4.3.0 - 7.2.0
Waarde!waarde