3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var="20070601"; if (intval ($var)) echo "it 's safe"; echo $var="". $var; echo ""; $var1="1 union select 1,1,1 from admin"; echo intval($var1); ?>
Output for 4.3.0 - 7.1.0
it 's safe200706011