3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if( "0" ) echo "nope\n"; if( "00" ) echo "wat1\n"; if( "-0" ) echo "wat2\n"; if( "0.0" ) echo "wat3\n"; if( 0 == "" ) echo "wat4\n"; if( 0 == " " ) echo "wat5\n"; if( 0 == " wat" ) echo "wat6\n"; if( 0 == "\t" ) echo "wat7\n"; if( 0 == "\r" ) echo "wat8\n"; if( 0 == "\n" ) echo "wat9\n";
Output for 4.3.0 - 7.2.0
wat1 wat2 wat3 wat4 wat5 wat6 wat7 wat8 wat9