3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( '4/9/2014', '3/9/2014', '2/9/2014', '5/9/2014', '1/9/2014' ); foreach ($arr as &$elem) { $elem = preg_replace('/2014/', '', $elem); } var_dump($arr); foreach ($arr as $elem) { $elem = $elem . 'BLAH'; } var_dump($arr);
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { [0]=> string(4) "4/9/" [1]=> string(4) "3/9/" [2]=> string(4) "2/9/" [3]=> string(4) "5/9/" [4]=> &string(4) "1/9/" } array(5) { [0]=> string(4) "4/9/" [1]=> string(4) "3/9/" [2]=> string(4) "2/9/" [3]=> string(4) "5/9/" [4]=> &string(12) "5/9/BLAHBLAH" }

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