3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hits = array( 'sortby' => array( 'String 1', 'String 11', 'String 2' ), 'html' => array( '<div>This element contains String 1</div>', '<div>This element contains String 11</div>', '<div>This element contains String 2</div>', ) ); foreach($hits as $sh => $v){ echo $sh; } var_dump($hits);
Output for git.master, git.master_jit, rfc.property-hooks
sortbyhtmlarray(2) { ["sortby"]=> array(3) { [0]=> string(8) "String 1" [1]=> string(9) "String 11" [2]=> string(8) "String 2" } ["html"]=> array(3) { [0]=> string(41) "<div>This element contains String 1</div>" [1]=> string(42) "<div>This element contains String 11</div>" [2]=> string(41) "<div>This element contains String 2</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:
54.07 ms | 402 KiB | 8 Q