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]); $matstring="'".$matstring."'"; print "INSERT INTO Australia (`Price`, `Company`, `Days`, `Weight`) VALUES ($matstring)"; ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
INSERT INTO Australia (`Price`, `Company`, `Days`, `Weight`) VALUES ('65.7','Coles','34 days','14')