3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('R$ 50,00', 'R$55.55', array(123, 'abc', false, array('RS', 'R$1'))); $callback = function(&$item, $key) { $item = str_replace('R$ ', ' ', $item); }; array_walk_recursive($array, $callback); print_r($array);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 50,00 [1] => R$55.55 [2] => Array ( [0] => 123 [1] => abc [2] => [3] => Array ( [0] => RS [1] => R$1 ) ) )

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