3v4l.org

run code in 300+ PHP versions simultaneously
<?php $multidim_array = ['a' => [' \one ', ['b' => 'two\\', [['c' => 'thr\ee']]]]]; var_export($multidim_array); echo "\n"; $func = 'stripslashes'; if (function_exists($func)) { array_walk_recursive($multidim_array, function(&$v)use($func){$v = $func($v);}); var_export($multidim_array); } else { echo "not callable"; }
Output for git.master_jit, git.master, rfc.property-hooks
array ( 'a' => array ( 0 => ' \\one ', 1 => array ( 'b' => 'two\\', 0 => array ( 0 => array ( 'c' => 'thr\\ee', ), ), ), ), ) array ( 'a' => array ( 0 => ' one ', 1 => array ( 'b' => 'two', 0 => array ( 0 => array ( 'c' => 'three', ), ), ), ), )

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:
162.78 ms | 406 KiB | 5 Q