https://github.com/camcima/php-mysql-diff/blob/a12f9648b9948827800dad41c62616088e4dcd10/src/RegExpPattern.php#L38 Because you replace comments with base64. Read RFC 2045. '/' is 63 symbol in Base64.