3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $matrix = array(); $matrix[1] = array( 0 => 65.70, 1 => 'Coles', 2 => '34 days', 3 => 14 ); $matstring=implode("','",$matrix[1]); orint "INSERT INTO Australia (Price, Company, Days, Weight) VALUES ('$matstring')"; print "\n"; $matstring=implode("','",$matrix[1]); $matstring="'".$matstring."'"; print "INSERT INTO Australia (`Price`, `Company`, `Days`, `Weight`) VALUES (NULL, $matstring)"; ?>
Output for 5.3.0 - 5.4.27
Parse error: syntax error, unexpected '"' in /in/GY2PH on line 8
Process exited with code 255.