3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = Array( "581095389012"=>Array(21,21,21), "112341234123"=>Array(25,25,25) ); function convertMultiArrayValuesToHistoryInformation($array){ foreach($array as $key=>$value){ echo '<div>Reference number: '.$key; foreach($value as $k=>$v){ echo '<br><span>Product id: getproductname('.$v.')</span>'; } echo '</div>'; } } convertMultiArrayValuesToHistoryInformation($array);
Output for git.master, git.master_jit, rfc.property-hooks
<div>Reference number: 581095389012<br><span>Product id: getproductname(21)</span><br><span>Product id: getproductname(21)</span><br><span>Product id: getproductname(21)</span></div><div>Reference number: 112341234123<br><span>Product id: getproductname(25)</span><br><span>Product id: getproductname(25)</span><br><span>Product id: getproductname(25)</span></div>

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:
78.12 ms | 402 KiB | 8 Q