Unicode source code in PHP
Yeah, php can be evil.
<?php
new class {
static $foo = 1;
static $foo = 2;
static $foo = 3;
public function __construct() {
echo self::$foo; // 1
echo self::$foo; // 2
echo self::$foo; // 3
}
};
This is actually;
<?php
new class {
static $foo = 1;
static $fu+200boo = 2;
static $fou+200bo = 3;
public function __construct() {
echo self::$foo;
echo self::$fu+200boo;
echo self::$fou+200bo;
}
};
Welcome to the era of unicode source code..
Member discussion