3v4l.org

run code in 150+ 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 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
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 hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: position in /in/CrKlK on line 6 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 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