3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function UnitsToday(){ include_once("connect.php"); $today= date("Y-m-d"); $sqlexec="select SUM(foss.`Qty`) from FringeOrder as fo inner join FringeOrderStatus as fos on fo.`Status` = fos.`ID` inner join FringeOrderItems as foss WHERE foss.`ID`='6' AND fo.`CreateDate` BETWEEN '$today 00:00:00' AND '$today 23:59:59' "; $result = $mysqli->query($sqlexec); $row = $result->fetch_row(); echo row[0]; }
Output for 5.6.0 - 7.1.0
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.5.38
Parse error: syntax error, unexpected '[', expecting ',' or ';' in /in/9Z7rg on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[', expecting ',' or ';' in /in/9Z7rg on line 9
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `','' or `';'' in /in/9Z7rg on line 9
Process exited with code 255.