3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = "☯"; // 262F $x .= "€"; // 20AC $x .= "☠"; // 2620 $x .= "갦"; // ac26 $x .= "괧"; // ad27 $x .= "オ"; // 30aa $x .= "〦"; // 3026 $x = "갦€"; // ac26|20ac $x = "abc" . $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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
GNU<br />Done