3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!function_exists('strip_slashes')) { /** * Un-quotes a quoted string. * * @param (mixed) $str - The input string. * @author Yousef Ismaeil Cliprz */ function strip_slashes($str) { if (is_array($str)) { foreach ($str as $key => $val) { $str[$key] = strip_slashes($val); } } else { $str = stripslashes($str); } return $str; } } $arr = array('Yousef\\\'s','\"PHP.net\"','user\\\'s'); echo 'With strip_slashes() function:<br />'; print_r(strip_slashes($arr)); echo '<br />'; echo 'Without strip_slashes() function:<br />'; print_r($arr); ?>
Output for git.master, git.master_jit, rfc.property-hooks
With strip_slashes() function:<br />Array ( [0] => Yousef's [1] => "PHP.net" [2] => user's ) <br />Without strip_slashes() function:<br />Array ( [0] => Yousef\'s [1] => \"PHP.net\" [2] => user\'s )

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