3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stuff = array( array('qty' => 2, 'item' => 'foo'), array('qty' => 3, 'item' => 'bar') ); echo sprintf('<input type="hidden" name="stuffarray" value="%s">', json_encode($stuff)) . PHP_EOL; echo sprintf('<input type="hidden" name="stuffarray" value="%s">', base64_encode(serialize($stuff))) . PHP_EOL;
Output for git.master, git.master_jit, rfc.property-hooks
<input type="hidden" name="stuffarray" value="[{"qty":2,"item":"foo"},{"qty":3,"item":"bar"}]"> <input type="hidden" name="stuffarray" value="YToyOntpOjA7YToyOntzOjM6InF0eSI7aToyO3M6NDoiaXRlbSI7czozOiJmb28iO31pOjE7YToyOntzOjM6InF0eSI7aTozO3M6NDoiaXRlbSI7czozOiJiYXIiO319">

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.06 ms | 402 KiB | 8 Q