3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 'aM' => array ( 0 => array ( 'iId' => 0, 'iTime' => 00 ), 1 => Array ( 'iId' => 1, 'iTime' => 11 ), 2 => array ( 'iId' => 2, 'iTime' => 22 ), ), 'aN' => array ( 0 => array ( 'sName' => 'a' ), 1 => array ( 'sName' => 'b' ), 2 => array ( 'sName' => 'v' ), ) ); $aM = $array['aM']; $aN = $array['aN']; $iter = new MultipleIterator; $iter->attachIterator( new ArrayIterator( $aM)); $iter->attachIterator( new ArrayIterator( $aN)); foreach( $iter as $data) { list( $a, $b) = $data; echo $a['iId'] . ' ' . $b['sName'] . ','; }
Output for git.master, git.master_jit, rfc.property-hooks
0 a,1 b,2 v,

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:
58.67 ms | 401 KiB | 8 Q