3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php Switch($arra2) { case 1; $smt = $con->prepare("SELECT * FROM tuser WHERE :NOMBR1 LIKE :ARR1"); break; case 2; $smt = $con->prepare("SELECT * FROM tuser WHERE :NOMBR2 LIKE :ARR1"); break; case 3; $smt = $con->prepare("SELECT * FROM tuser WHERE :NOMBR3 LIKE :ARR1"); break; case 4; $smt = $con->prepare("SELECT * FROM tuser WHERE :NOMBR4 LIKE :ARR1"); break; default: "Must select one of the Categorys"; }
Output for 5.1.0 - 7.1.0
Notice: Undefined variable: arra2 in /in/iajPQ on line 3 Notice: Undefined variable: arra2 in /in/iajPQ on line 6 Notice: Undefined variable: arra2 in /in/iajPQ on line 9 Notice: Undefined variable: arra2 in /in/iajPQ on line 12
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: arra2 in /in/iajPQ on line 2
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: arra2 in /in/iajPQ on line 2