3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $intzero = 0; $stringzero = "0"; echo "Intzero: ".print_r(empty($intzero),1)."\n"; echo "Stringzero: ".print_r(empty($stringzero),1)."\n";
based on PhpJK
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Intzero: 1 Stringzero: 1