3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = "¤"; $x .= "ä"; $re = '/ä/i'; $m = array(); if (preg_match($re, $x, $m) === 1) { print "<pre>" . print_r($m, 1) . "</pre>"; print "<pre>" . $x . "</pre>"; } else { print "GNU"; } print "<br />Done";
Output for 4.3.0 - 7.1.0
<pre>Array ( [0] => ä ) </pre><pre>¤ä</pre><br />Done