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"; if (intval ($var1)) echo "it 's safe"; echo '$var1='. $var1; ?>
Output for 4.3.0 - 7.1.0
it 's safe20070601it 's safe$var1=1 union select 1,1,1 from admin