3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '-._~%:/?#[]@!$&\'()*+,;='; $str = preg_quote( $str , '/'); $str = "/[" . $str . "]/"; echo $str; $value = "@"; //$value = "@$$$$"; //$value = "++++;"; //$value = ":::"; if (preg_match($str,$value) == 1) { echo "不正な文字です"; }else{ echo "有効な文字です"; }
Output for git.master, git.master_jit, rfc.property-hooks
/[\-\._~%\:\/\?\#\[\]@\!\$&'\(\)\*\+,;\=]/不正な文字です

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