3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $sql = "SELECT * FROM dbase WHERE firstname = '" . $a[0] . "' AND currentbalance = '" . trim($a[1]) . "' AND zip = '" . a[2] . "'"; ?>
Output for 7.2.0
Notice: Undefined variable: a in /in/JK3NM on line 2 Notice: Undefined variable: a in /in/JK3NM on line 2 Warning: Use of undefined constant a - assumed 'a' (this will throw an Error in a future version of PHP) in /in/JK3NM on line 2 Notice: Uninitialized string offset: 2 in /in/JK3NM on line 2
Output for 5.6.8 - 7.1.10
Notice: Undefined variable: a in /in/JK3NM on line 2 Notice: Undefined variable: a in /in/JK3NM on line 2 Notice: Use of undefined constant a - assumed 'a' in /in/JK3NM on line 2 Notice: Uninitialized string offset: 2 in /in/JK3NM on line 2
Output for 5.3.22 - 5.5.35
Parse error: syntax error, unexpected '[' in /in/JK3NM on line 2
Process exited with code 255.