3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matrix = array(); $matrix[1] = array( 0 => 65.70, 1 => 'Coles', 2 => '34 days', 3 => 14 ); $matstring=implode(",",$matrix[1]); print "INSERT INTO Australia (Price, Company, Days, Weight) VALUES ('$matstring')"; print "\n"; $id = 'NULL'; $table = 'atable'; $values = array('one','two','three','four','five'); $valstring=implode("','",$values); print "INSERT INTO " . $table . " VALUES ($id,'$valstring')"; ?>
Output for git.master, git.master_jit, rfc.property-hooks
INSERT INTO Australia (Price, Company, Days, Weight) VALUES ('65.7,Coles,34 days,14') INSERT INTO atable VALUES (NULL,'one','two','three','four','five')

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
42.61 ms | 401 KiB | 8 Q