3v4l.org

run code in 300+ PHP versions simultaneously
<?php $r = array(); $org = 'valid-name'; $r[] = $org; $filter = filter_var($org, FILTER_UNSAFE_RAW, FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_HIGH); $r[] = $filter; $trim = trim($filter); $r[] = $trim; $mv_space = str_replace('', '-', $trim); $r[] = $mv_space; $rm_w = str_replace(array("\n", "\r", "\t"), '', $mv_space); $r[] = $rm_w; var_dump($r);
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { [0]=> string(10) "valid-name" [1]=> string(10) "valid-name" [2]=> string(10) "valid-name" [3]=> string(10) "valid-name" [4]=> string(10) "valid-name" }

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