3v4l.org

run code in 300+ PHP versions simultaneously
<?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 5.3.0 - 5.3.28, 5.4.0 - 5.4.27
Parse error: syntax error, unexpected '?' in /in/JEnjB on line 11
Process exited with code 255.

preferences:
184.8 ms | 1399 KiB | 64 Q