3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $t1select = "teamvalue"; $sql = "SELECT * FROM `allsquads` WHERE `Team` = '$t1select' AND `Position` = '$position[$i]' OR `Secondary` = '$position[$i]'"; echo sql;
Output for 7.2.0 - 7.3.0rc4
Notice: Undefined variable: position in /in/CrKlK on line 6 Notice: Undefined variable: i in /in/CrKlK on line 6 Notice: Undefined variable: position in /in/CrKlK on line 7 Notice: Undefined variable: i in /in/CrKlK on line 7 Warning: Use of undefined constant sql - assumed 'sql' (this will throw an Error in a future version of PHP) in /in/CrKlK on line 11 sql
Output for 5.4.0 - 7.1.20
Notice: Undefined variable: position in /in/CrKlK on line 6 Notice: Undefined variable: i in /in/CrKlK on line 6 Notice: Undefined variable: position in /in/CrKlK on line 7 Notice: Undefined variable: i in /in/CrKlK on line 7 Notice: Use of undefined constant sql - assumed 'sql' in /in/CrKlK on line 11 sql
Output for 5.0.4 - 5.3.29
Notice: Undefined variable: i in /in/CrKlK on line 6 Notice: Undefined variable: position in /in/CrKlK on line 6 Notice: Undefined variable: i in /in/CrKlK on line 7 Notice: Undefined variable: position in /in/CrKlK on line 7 Notice: Use of undefined constant sql - assumed 'sql' in /in/CrKlK on line 11 sql
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: i in /in/CrKlK on line 6 Notice: Undefined variable: position in /in/CrKlK on line 6 Notice: Undefined variable: i in /in/CrKlK on line 7 Notice: Undefined variable: position in /in/CrKlK on line 7 Notice: Use of undefined constant sql - assumed 'sql' in /in/CrKlK on line 11 sql