PHP 5.5 support

Fixed preg_replace calls with /e modifier.
Fixed compatibility with HipHop VM