3v4l.org

run code in 300+ PHP versions simultaneously
<?php $handle = 0; $message = 'nothing in here except plain text'; // Check message doesn't contain odd characters $checkChars = 'href,http,#,¥,²,æ,é,Hello. And Bye.,£,$,ˆ,ª,³,¦,½,å,œ,…,§,¾,‡,»,ç,º,³,ä,¿,Â,¶,¸,µ,Ž,°,Œ,Å,’,€,â,¢,¬,ƒ,Æ,†,±,š,¡,Ñ,‘,Ë,‹,¹,·,Þ,`'; $checkArray = explode(",", $checkChars); foreach ($checkArray as $char) { if (strpos($message, $char) !== false) { $handle = 1; break; } } echo $handle;
Output for git.master, git.master_jit
0

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:
42.08 ms | 405 KiB | 5 Q